Skip to content
Snippets Groups Projects
Commit 17580cc4 authored by Hallvard Trætteberg's avatar Hallvard Trætteberg
Browse files

Enabled preview, works with newer checkstyle library

parent 42dec364
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,12 @@
"java.format.settings.url": "todolist/config/checkstyle/eclipse-java-google-style.xml",
"[java]": {
"editor.tabSize": 2
},
"java.configuration.runtimes": [
{
"name": "JavaSE-13",
"path": "/home/gitpod/.sdkman/candidates/java/14.0.2.j9-adpt",
"default": true
}
]
}
......@@ -81,9 +81,7 @@
<version>0.0.4</version>
<configuration>
<options>
<!--
<option>dash dash enable-preview</option>
-->
<option>--enable-preview</option>
</options>
<mainClass>todolist.ui.TodoApp</mainClass>
</configuration>
......
......@@ -25,8 +25,20 @@ import todolist.json.TodoModule;
public class TodoController {
private static final String todoListWithTwoItems =
"{\"items\":[{\"text\":\"Øl\",\"checked\":false},{\"text\":\"Pizza\",\"checked\":true}]}";
private static final String todoListWithTwoItems = """
{
"items": [
{
"text": "Øl",
"checked":false
},
{
"text": "Pizza",
"checked":true
}
]
}
""";
private TodoList todoList;
......
......@@ -59,9 +59,7 @@
<encoding>UTF-8</encoding>
<release>14</release>
<compilerArgs>
<!--
<arg>dash dash enable-preview</arg>
-->
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>
......@@ -70,9 +68,7 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<!--
<argLine>dash dash enable-preview</argLine>
-->
<argLine>--enable-preview</argLine>
</configuration>
</plugin>
<!-- Run the checkstyle code quality tool -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment