-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
154 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,4 @@ public void removePackage(String packageName) { | |
} | ||
} | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...lder/processor/with/ambiguousimports/innerclasses/PojoWithAmbiguousInnerClassImports.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses; | ||
|
||
import net.karneim.pojobuilder.GeneratePojoBuilder; | ||
|
||
@GeneratePojoBuilder | ||
public class PojoWithAmbiguousInnerClassImports { | ||
public net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses.pack1.Outer1.Inner field1; | ||
public net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses.pack2.Outer2.Inner field2; | ||
} |
95 changes: 95 additions & 0 deletions
95
...ocessor/with/ambiguousimports/innerclasses/PojoWithAmbiguousInnerClassImportsBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
package net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses; | ||
|
||
import javaxfake.annotation.Generated; | ||
import net.karneim.pojobuilder.GwtIncompatible; | ||
import net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses.pack1.Outer1.Inner; | ||
|
||
@Generated("PojoBuilder") | ||
public class PojoWithAmbiguousInnerClassImportsBuilder | ||
implements Cloneable { | ||
protected PojoWithAmbiguousInnerClassImportsBuilder self; | ||
protected Inner value$field1$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack1$Outer1$Inner; | ||
protected boolean isSet$field1$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack1$Outer1$Inner; | ||
protected net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses.pack2.Outer2.Inner value$field2$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack2$Outer2$Inner; | ||
protected boolean isSet$field2$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack2$Outer2$Inner; | ||
|
||
/** | ||
* Creates a new {@link PojoWithAmbiguousInnerClassImportsBuilder}. | ||
*/ | ||
public PojoWithAmbiguousInnerClassImportsBuilder() { | ||
self = (PojoWithAmbiguousInnerClassImportsBuilder)this; | ||
} | ||
|
||
/** | ||
* Sets the default value for the {@link PojoWithAmbiguousInnerClassImports#field1} property. | ||
* | ||
* @param value the default value | ||
* @return this builder | ||
*/ | ||
public PojoWithAmbiguousInnerClassImportsBuilder withField1(Inner value) { | ||
this.value$field1$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack1$Outer1$Inner = value; | ||
this.isSet$field1$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack1$Outer1$Inner = true; | ||
return self; | ||
} | ||
|
||
/** | ||
* Sets the default value for the {@link PojoWithAmbiguousInnerClassImports#field2} property. | ||
* | ||
* @param value the default value | ||
* @return this builder | ||
*/ | ||
public PojoWithAmbiguousInnerClassImportsBuilder withField2(net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses.pack2.Outer2.Inner value) { | ||
this.value$field2$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack2$Outer2$Inner = value; | ||
this.isSet$field2$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack2$Outer2$Inner = true; | ||
return self; | ||
} | ||
|
||
/** | ||
* Returns a clone of this builder. | ||
* | ||
* @return the clone | ||
*/ | ||
@Override | ||
@GwtIncompatible | ||
public Object clone() { | ||
try { | ||
PojoWithAmbiguousInnerClassImportsBuilder result = (PojoWithAmbiguousInnerClassImportsBuilder)super.clone(); | ||
result.self = result; | ||
return result; | ||
} catch (CloneNotSupportedException e) { | ||
throw new InternalError(e.getMessage()); | ||
} | ||
} | ||
|
||
/** | ||
* Returns a clone of this builder. | ||
* | ||
* @return the clone | ||
*/ | ||
@GwtIncompatible | ||
public PojoWithAmbiguousInnerClassImportsBuilder but() { | ||
return (PojoWithAmbiguousInnerClassImportsBuilder)clone(); | ||
} | ||
|
||
/** | ||
* Creates a new {@link PojoWithAmbiguousInnerClassImports} based on this builder's settings. | ||
* | ||
* @return the created PojoWithAmbiguousInnerClassImports | ||
*/ | ||
public PojoWithAmbiguousInnerClassImports build() { | ||
try { | ||
PojoWithAmbiguousInnerClassImports result = new PojoWithAmbiguousInnerClassImports(); | ||
if (isSet$field1$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack1$Outer1$Inner) { | ||
result.field1 = value$field1$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack1$Outer1$Inner; | ||
} | ||
if (isSet$field2$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack2$Outer2$Inner) { | ||
result.field2 = value$field2$net$karneim$pojobuilder$processor$with$ambiguousimports$innerclasses$pack2$Outer2$Inner; | ||
} | ||
return result; | ||
} catch (RuntimeException ex) { | ||
throw ex; | ||
} catch (Exception ex) { | ||
throw new RuntimeException(ex); | ||
} | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...va/net/karneim/pojobuilder/processor/with/ambiguousimports/innerclasses/pack1/Outer1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses.pack1; | ||
|
||
public class Outer1 { | ||
public static class Inner { | ||
|
||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...va/net/karneim/pojobuilder/processor/with/ambiguousimports/innerclasses/pack2/Outer2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package net.karneim.pojobuilder.processor.with.ambiguousimports.innerclasses.pack2; | ||
|
||
public class Outer2 { | ||
public static class Inner { | ||
|
||
} | ||
} |