File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sonar-java-plugin/src/test/java/org/sonar/plugins/java Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1616 */
1717package org .sonar .plugins .java ;
1818
19- import com .google .common .base .Charsets ;
2019import com .google .common .io .Files ;
2120import com .google .gson .Gson ;
2221import com .google .gson .JsonElement ;
2322import com .google .gson .JsonObject ;
2423import java .io .FileNotFoundException ;
24+ import java .nio .charset .StandardCharsets ;
2525import java .nio .file .Path ;
2626import java .util .Comparator ;
2727import java .util .List ;
@@ -35,7 +35,7 @@ class MetadataTest {
3535 @ Test
3636 void ensure_sane_Sonar_way_profile () throws FileNotFoundException {
3737 var profilePath = Path .of ("src/main/resources/" + JavaSonarWayProfile .SONAR_WAY_PATH );
38- var reader = Files .newReader (profilePath .toFile (), Charsets .UTF_8 );
38+ var reader = Files .newReader (profilePath .toFile (), StandardCharsets .UTF_8 );
3939
4040 Gson gson = new Gson ();
4141 var json = gson .fromJson (reader , JsonObject .class );
You can’t perform that action at this time.
0 commit comments