File tree Expand file tree Collapse file tree
src/main/java/com/palantir/javaformat/intellij Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ type : fix
2+ fix :
3+ description : Use recommended project.getService & update sinceBuild to match intellij
4+ version
5+ links :
6+ - https://github.com/palantir/palantir-java-format/pull/1295
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ intellij {
2727
2828patchPluginXml {
2929 pluginDescription = " Formats source code using the palantir-java-format tool."
30- sinceBuild = ' 213 ' // TODO: test against this version of IntelliJ to ensure no regressions
30+ sinceBuild = ' 241 ' // TODO: keep the intellij version & sinceBuild in sync
3131 untilBuild = ' '
3232}
3333
Original file line number Diff line number Diff line change 1717package com .palantir .javaformat .intellij ;
1818
1919import com .intellij .openapi .components .PersistentStateComponent ;
20- import com .intellij .openapi .components .ServiceManager ;
2120import com .intellij .openapi .components .State ;
2221import com .intellij .openapi .components .Storage ;
2322import com .intellij .openapi .project .Project ;
@@ -43,7 +42,7 @@ public class PalantirJavaFormatSettings implements PersistentStateComponent<Pala
4342 private State state = new State ();
4443
4544 static PalantirJavaFormatSettings getInstance (Project project ) {
46- return ServiceManager .getService (project , PalantirJavaFormatSettings .class );
45+ return project .getService (PalantirJavaFormatSettings .class );
4746 }
4847
4948 @ SuppressWarnings ("for-rollout:SameNameButDifferent" )
You can’t perform that action at this time.
0 commit comments