Skip to content

Instantly share code, notes, and snippets.

@sergei-ivanov
Created April 29, 2015 19:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sergei-ivanov/085110bb98793737dc4d to your computer and use it in GitHub Desktop.
diff --git a/src/main/java/com/google/protobuf/maven/Protoc.java b/src/main/java/com/google/protobuf/maven/Protoc.java
index 610165c..492e644 100644
--- a/src/main/java/com/google/protobuf/maven/Protoc.java
+++ b/src/main/java/com/google/protobuf/maven/Protoc.java
@@ -3,6 +3,7 @@ package com.google.protobuf.maven;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
+
import org.apache.maven.plugin.logging.Log;
import org.codehaus.plexus.util.cli.CommandLineException;
import org.codehaus.plexus.util.cli.CommandLineUtils;
@@ -10,6 +11,7 @@ import org.codehaus.plexus.util.cli.CommandLineUtils.StringStreamConsumer;
import org.codehaus.plexus.util.cli.Commandline;
import java.io.File;
+import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
@@ -350,7 +352,7 @@ final class Protoc {
Builder(final String executable) {
this.executable = checkNotNull(executable, "executable");
this.protoFiles = newHashSet();
- this.protopathElements = newHashSet();
+ this.protopathElements = new LinkedHashSet<File>();
this.plugins = newHashSet();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment