Skip to content

Commit 866102d

Browse files
author
Vincent Potucek
committed
spotless-maven-plugin
1 parent c91c614 commit 866102d

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

core/src/main/java/com/google/googlejavaformat/java/RemoveUnusedImports.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,12 +271,12 @@ private static RangeMap<Integer, String> buildReplacements(
271271
String contents,
272272
JCCompilationUnit unit,
273273
Set<String> usedNames,
274-
Multimap<String, Range<Integer>> usedInJavadoc) {
275-
RangeMap<Integer, String> replacements = TreeRangeMap.create();
276-
for (JCTree importTree : unit.getImports()) {
277-
String simpleName = getSimpleName(importTree);
278-
if (!isUnused(unit, usedNames, usedInJavadoc, importTree, simpleName)) {
279-
continue;
274+
Multimap<String, Range<Integer>> usedInJavadoc) {
275+
RangeMap<Integer, String> replacements = TreeRangeMap.create();
276+
for (JCTree importTree : unit.getImports()) {
277+
String simpleName = getSimpleName(importTree);
278+
if (!isUnused(unit, usedNames, usedInJavadoc, importTree, simpleName)) {
279+
continue;
280280
}
281281
// delete the import
282282
int endPosition = importTree.getEndPosition(unit.endPositions);

eclipse_plugin/pom.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@
1919
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2020
<modelVersion>4.0.0</modelVersion>
2121

22-
<groupId>com.google.googlejavaformat</groupId>
2322
<artifactId>google-java-format-eclipse-plugin</artifactId>
2423
<packaging>eclipse-plugin</packaging>
2524
<version>1.13.0</version>
26-
25+
<parent>
26+
<groupId>com.google.googlejavaformat</groupId>
27+
<artifactId>google-java-format-parent</artifactId>
28+
<version>HEAD-SNAPSHOT</version>
29+
</parent>
2730
<name>Google Java Format Plugin for Eclipse 4.5+</name>
2831

2932
<description>

0 commit comments

Comments
 (0)