Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
22 changes: 11 additions & 11 deletions lang/java/avro/src/test/java/org/apache/avro/specific/int$.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down Expand Up @@ -28,7 +28,7 @@ public static org.apache.avro.Schema getClassSchema() {

/**
* Return the BinaryMessageEncoder instance used by this class.
*
*
* @return the message encoder used by this class
*/
public static BinaryMessageEncoder<int$> getEncoder() {
Expand All @@ -37,7 +37,7 @@ public static org.apache.avro.Schema getClassSchema() {

/**
* Return the BinaryMessageDecoder instance used by this class.
*
*
* @return the message decoder used by this class
*/
public static BinaryMessageDecoder<int$> getDecoder() {
Expand All @@ -47,7 +47,7 @@ public static org.apache.avro.Schema getClassSchema() {
/**
* Create a new BinaryMessageDecoder instance for this class that uses the
* specified {@link SchemaStore}.
*
*
* @param resolver a {@link SchemaStore} used to find schemas by fingerprint
* @return a BinaryMessageDecoder instance for this class backed by the given
* SchemaStore
Expand All @@ -58,7 +58,7 @@ public static org.apache.avro.Schema getClassSchema() {

/**
* Serializes this int to a ByteBuffer.
*
*
* @return a buffer holding the serialized data for this instance
* @throws java.io.IOException if this instance could not be serialized
*/
Expand All @@ -68,7 +68,7 @@ public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {

/**
* Deserializes a int from a ByteBuffer.
*
*
* @param b a byte buffer holding serialized data for an instance of this class
* @return a int instance decoded from the given buffer
* @throws java.io.IOException if the given bytes could not be deserialized into
Expand Down Expand Up @@ -105,7 +105,7 @@ public void put(int field$, Object value$) {

/**
* Creates a new int$ RecordBuilder.
*
*
* @return A new int$ RecordBuilder
*/
public static Builder newBuilder() {
Expand All @@ -114,7 +114,7 @@ public static Builder newBuilder() {

/**
* Creates a new int$ RecordBuilder by copying an existing Builder.
*
*
* @param other The existing builder to copy.
* @return A new int$ RecordBuilder
*/
Expand All @@ -128,7 +128,7 @@ public static Builder newBuilder(Builder other) {

/**
* Creates a new int$ RecordBuilder by copying an existing int$ instance.
*
*
* @param other The existing instance to copy.
* @return A new int$ RecordBuilder
*/
Expand All @@ -154,7 +154,7 @@ private Builder() {

/**
* Creates a Builder by copying an existing Builder.
*
*
* @param other The existing Builder to copy.
*/
private Builder(Builder other) {
Expand All @@ -163,7 +163,7 @@ private Builder(Builder other) {

/**
* Creates a Builder by copying an existing int$ instance
*
*
* @param other The existing instance to copy.
*/
private Builder(int$ other) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ public boolean isCreateAllArgsConstructor() {
return createAllArgsConstructor;
}

private static final String FILE_HEADER = "/**\n" + " * Autogenerated by Avro\n" + " *\n"
+ " * DO NOT EDIT DIRECTLY\n" + " */\n";
private static final String FILE_HEADER = "/*\n * Autogenerated by Avro\n *\n * DO NOT EDIT DIRECTLY\n */\n";

public SpecificCompiler(Protocol protocol) {
this();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void assertCompilesWithJavaCompiler(File dstDir, Collection<SpecificCompi
boolean compilesWithoutError = cTask.call();
assertTrue(compilesWithoutError);
if (!ignoreWarnings) {
assertEquals(0, warnings.size(), "Warnings produced when compiling generated code with -Xlint:all");
assertEquals(List.of(), warnings, "Warnings produced when compiling generated code with -Xlint:all");
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand All @@ -24,4 +24,4 @@ public interface Callback extends Proto {
*/
void bar(org.apache.avro.ipc.Callback<java.lang.Void> callback) throws java.io.IOException;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
2 changes: 1 addition & 1 deletion lang/java/tools/src/test/compiler/output/Player.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down
2 changes: 1 addition & 1 deletion lang/java/tools/src/test/compiler/output/Position.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/*
* Autogenerated by Avro
*
* DO NOT EDIT DIRECTLY
Expand Down