|
@@ -5,17 +5,18 @@ import de.jplag.golang.GoToken;
|
|
|
public class GoTokenUtils {
|
|
public class GoTokenUtils {
|
|
|
|
|
|
|
|
private static final int NOT_SET = -1;
|
|
private static final int NOT_SET = -1;
|
|
|
- private static final String NOT_SET_STRING = "";
|
|
|
|
|
|
|
+ private static final String EMPTY_STRING = "";
|
|
|
|
|
+
|
|
|
|
|
+ private GoTokenUtils() {
|
|
|
|
|
+ // Utility class, should not be instantiated.
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
public static GoToken getDummyToken(int type) {
|
|
public static GoToken getDummyToken(int type) {
|
|
|
- return new GoToken(type, NOT_SET_STRING, NOT_SET, NOT_SET, NOT_SET);
|
|
|
|
|
|
|
+ return new GoToken(type, EMPTY_STRING, NOT_SET, NOT_SET, NOT_SET);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static GoToken getDummyToken(int type, String fileName) {
|
|
public static GoToken getDummyToken(int type, String fileName) {
|
|
|
return new GoToken(type, fileName, NOT_SET, NOT_SET, NOT_SET);
|
|
return new GoToken(type, fileName, NOT_SET, NOT_SET, NOT_SET);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private GoTokenUtils() {
|
|
|
|
|
- // Utility class, should not be instantiated.
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|