Skip to content

Commit

Permalink
#14 Tightens up visibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhoadley committed Apr 1, 2024
1 parent bc46eb6 commit 0de8580
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/logicsquad/pal/Code.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author Philip Roberts <[email protected]>
* @author Paul Hoadley <[email protected]>
*/
public class Code {
final class Code {
/**
* The three-letter mnemonic for this instruction.
*
Expand Down Expand Up @@ -44,7 +44,7 @@ public class Code {
* the line number in the source file where this instruction
* originated.
*/
public Code(String mnemonic, int first, Object second, int lineno) {
Code(String mnemonic, int first, Object second, int lineno) {
this.mnemonic = Mnemonic.valueOf(mnemonic);
this.first = first;
this.second = second;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/logicsquad/pal/Data.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author Philip Roberts <[email protected]>
* @author Paul Hoadley <[email protected]>
*/
public class Data implements Cloneable {
final class Data implements Cloneable {
/** The type of this datum. */
private int type;

Expand Down Expand Up @@ -37,7 +37,7 @@ public class Data implements Cloneable {
* An <code>Object</code> representing the value of this datum.
* @see Code#Code
*/
public Data(int type, Object value) {
Data(int type, Object value) {
this.type = type;
this.value = value;
return;
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/net/logicsquad/pal/DataStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @author Philip Roberts &lt;[email protected]&gt;
* @author Paul Hoadley &lt;[email protected]&gt;
*/
public class DataStack {
final class DataStack {
/** A container for the <code>Data</code> objects. */
private List<Data> data;

Expand All @@ -25,7 +25,7 @@ public class DataStack {
/**
* Default constructor. Assumes no limit on stack size.
*/
public DataStack() {
DataStack() {
this(0);
}

Expand All @@ -35,7 +35,7 @@ public DataStack() {
* @param max
* Maximum stack size.
*/
public DataStack(int max) {
DataStack(int max) {
top = 0;

data = new ArrayList<Data>();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/logicsquad/pal/Mnemonic.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @author Philip Roberts &lt;[email protected]&gt;
* @author Paul Hoadley &lt;[email protected]&gt;
*/
public enum Mnemonic {
enum Mnemonic {
/**
* <code>CAL</code>
*/
Expand Down

0 comments on commit 0de8580

Please sign in to comment.