Skip to content

Commit

Permalink
Upgrade Java18 + JavaFx19
Browse files Browse the repository at this point in the history
  • Loading branch information
GiacomoCau committed Oct 4, 2022
1 parent 1b258b4 commit 165f74b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JavaFx16"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JavaFx19"/>
<classpathentry kind="output" path="bin"/>
</classpath>
8 changes: 4 additions & 4 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.codegen.targetPlatform=18
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.compliance=18
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=enabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=17
org.eclipse.jdt.core.compiler.source=18
2 changes: 2 additions & 0 deletions src/util/LRParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ protected void createStates(BiFunction<Grammar, Set<I>, S> newState, S initialSt
}
}

@SuppressWarnings("preview")
protected boolean createActionGoToTable(Function<I, Set<String>> f) {
log.setLength(0);
for (int i=0; i<statesList.size(); i+=1) {
Expand Down Expand Up @@ -205,6 +206,7 @@ public <T> T put(int state, String symbol, T t) {
public <T> T get(int state, String symbol) {
return (T) get(new Key(state, symbol));
}
@SuppressWarnings("preview")
private int value(int state, String symbol) {
return switch (get(state, symbol)) { case null, default-> 0; case Integer i-> i; case Action a-> a.operand; };
}
Expand Down

0 comments on commit 165f74b

Please sign in to comment.