You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by ni...@apache.org on 2017/12/22 21:59:14 UTC
[1/5] avro git commit: AVRO-2118: Reverting changes by Thiruvalluvan
M G from commit
9132015450a2ad6f56cd582b393e8f1b8df573c9
Repository: avro
Updated Branches:
refs/heads/master 5040c6413 -> 2e25d2edd
AVRO-2118: Reverting changes by Thiruvalluvan M G <th...@startsmartlabs.com> from commit 9132015450a2ad6f56cd582b393e8f1b8df573c9
Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/c7a3c960
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/c7a3c960
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/c7a3c960
Branch: refs/heads/master
Commit: c7a3c960902abffcbd3e9caf084f0dc5fae9f7f0
Parents: 5040c64
Author: Niels Basjes <nb...@bol.com>
Authored: Thu Dec 21 18:24:35 2017 +0100
Committer: Niels Basjes <nb...@bol.com>
Committed: Thu Dec 21 18:24:35 2017 +0100
----------------------------------------------------------------------
.../avro/compiler/schema/SchemaVisitor.java | 41 ++++++-----
.../compiler/schema/SchemaVisitorAction.java | 71 ++++++++++----------
2 files changed, 57 insertions(+), 55 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/avro/blob/c7a3c960/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
index 8000314..4198355 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
@@ -1,31 +1,33 @@
-/*
-* Copyright (c) 2001 - 2016, Zoltan Farkas All Rights Reserved.
-*
-* This library is free software; you can redistribute it and/or
-* modify it under the terms of the GNU Lesser General Public
-* License as published by the Free Software Foundation; either
-* version 2.1 of the License, or (at your option) any later version.
-*
-* This library is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
+ /*
+ * Copyright (c) 2001 - 2016, Zoltan Farkas All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
package org.apache.avro.compiler.schema;
import org.apache.avro.Schema;
+/**
+ * @author zoly
+ */
public interface SchemaVisitor<T> {
/**
* Invoked for schemas that do not have "child" schemas (like string, int ...)
* or for a previously encountered schema with children,
* which will be treated as a terminal. (to avoid circular recursion)
- *
* @param terminal
* @return
*/
@@ -33,7 +35,6 @@ public interface SchemaVisitor<T> {
/**
* Invoked for schema with children before proceeding to visit the children.
- *
* @param nonTerminal
* @return
*/
@@ -41,7 +42,6 @@ public interface SchemaVisitor<T> {
/**
* Invoked for schemas with children after its children have been visited.
- *
* @param nonTerminal
* @return
*/
@@ -50,7 +50,6 @@ public interface SchemaVisitor<T> {
/**
* Invoked when visiting is complete.
- *
* @return a value which will be returned by the visit method.
*/
T get();
http://git-wip-us.apache.org/repos/asf/avro/blob/c7a3c960/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
index 305ffbd..81157aa 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
@@ -1,41 +1,44 @@
-/*
-* Copyright (c) 2001 - 2016, Zoltan Farkas All Rights Reserved.
-*
-* This library is free software; you can redistribute it and/or
-* modify it under the terms of the GNU Lesser General Public
-* License as published by the Free Software Foundation; either
-* version 2.1 of the License, or (at your option) any later version.
-*
-* This library is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this program; if not, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
+ /*
+ * Copyright (c) 2001 - 2016, Zoltan Farkas All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
package org.apache.avro.compiler.schema;
+/**
+ * @author zoly
+ */
public enum SchemaVisitorAction {
- /**
- * continue visit.
- */
- CONTINUE,
- /**
- * terminate visit.
- */
- TERMINATE,
- /**
- * when returned from pre non terminal visit method the children of the non terminal are skipped.
- * afterVisitNonTerminal for the current schema will not be invoked.
- */
- SKIP_SUBTREE,
- /**
- * Skip visiting the siblings of this schema.
- */
- SKIP_SIBLINGS;
+ /**
+ * continue visit.
+ */
+ CONTINUE,
+ /**
+ * terminate visit.
+ */
+ TERMINATE,
+ /**
+ * when returned from pre non terminal visit method the children of the non terminal are skipped.
+ * afterVisitNonTerminal for the current schema will not be invoked.
+ */
+ SKIP_SUBTREE,
+ /**
+ * Skip visiting the siblings of this schema.
+ */
+ SKIP_SIBLINGS;
}
[3/5] avro git commit: AVRO-2118: Remove @author tag. Dangling
JavaDoc fix.
Posted by ni...@apache.org.
AVRO-2118: Remove @author tag. Dangling JavaDoc fix.
Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/41653853
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/41653853
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/41653853
Branch: refs/heads/master
Commit: 41653853c66143796e0bac503064e24cc0353a87
Parents: 48b2abc
Author: Niels Basjes <nb...@bol.com>
Authored: Fri Dec 22 10:48:40 2017 +0100
Committer: Niels Basjes <nb...@bol.com>
Committed: Fri Dec 22 10:48:40 2017 +0100
----------------------------------------------------------------------
.../java/org/apache/avro/compiler/schema/CloningVisitor.java | 2 +-
.../java/org/apache/avro/compiler/schema/SchemaVisitor.java | 5 +----
.../org/apache/avro/compiler/schema/SchemaVisitorAction.java | 5 +----
.../src/main/java/org/apache/avro/compiler/schema/Schemas.java | 2 +-
4 files changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/avro/blob/41653853/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java
index a5002f1..ef2a53e 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java
@@ -1,4 +1,4 @@
-/**
+/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
http://git-wip-us.apache.org/repos/asf/avro/blob/41653853/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
index bb79fb2..b169a14 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
@@ -1,4 +1,4 @@
-/**
+/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -19,9 +19,6 @@ package org.apache.avro.compiler.schema;
import org.apache.avro.Schema;
-/**
- * @author zoly
- */
public interface SchemaVisitor<T> {
/**
http://git-wip-us.apache.org/repos/asf/avro/blob/41653853/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
index 68a78dc..777215e 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
@@ -1,4 +1,4 @@
-/**
+/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -18,9 +18,6 @@
package org.apache.avro.compiler.schema;
-/**
- * @author zoly
- */
public enum SchemaVisitorAction {
/**
http://git-wip-us.apache.org/repos/asf/avro/blob/41653853/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java
index e56248f..dae4b91 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java
@@ -1,4 +1,4 @@
-/**
+/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
[5/5] avro git commit: AVRO-2119: Update Apache Rat. Fix build problem
Posted by ni...@apache.org.
AVRO-2119: Update Apache Rat. Fix build problem
Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/2e25d2ed
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/2e25d2ed
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/2e25d2ed
Branch: refs/heads/master
Commit: 2e25d2edd2d06c665502afe788c197a63ce663fa
Parents: a79b436
Author: Niels Basjes <nb...@bol.com>
Authored: Fri Dec 22 12:04:36 2017 +0100
Committer: Niels Basjes <nb...@bol.com>
Committed: Fri Dec 22 12:04:36 2017 +0100
----------------------------------------------------------------------
pom.xml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/avro/blob/2e25d2ed/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 5c0a8b8..1efc3a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -53,7 +53,7 @@
<!-- plugin versions -->
<antrun-plugin.version>1.7</antrun-plugin.version>
<enforcer-plugin.version>1.3.1</enforcer-plugin.version>
- <rat.version>0.9</rat.version>
+ <rat.version>0.12</rat.version>
<checkstyle-plugin.version>2.17</checkstyle-plugin.version>
</properties>
@@ -214,6 +214,7 @@
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
<version>${rat.version}</version>
+ <inherited>false</inherited>
<executions>
<execution>
<phase>test</phase>
[2/5] avro git commit: AVRO-2118: Fix license headers
Posted by ni...@apache.org.
AVRO-2118: Fix license headers
Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/48b2abca
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/48b2abca
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/48b2abca
Branch: refs/heads/master
Commit: 48b2abca0f3b7873519f3566eb46a49cb4d15db7
Parents: c7a3c96
Author: Zoltan Farkas <zo...@yahoo.com>
Authored: Thu Dec 14 08:36:24 2017 -0500
Committer: Niels Basjes <nb...@bol.com>
Committed: Fri Dec 22 10:37:10 2017 +0100
----------------------------------------------------------------------
.../avro/compiler/idl/ResolvingVisitor.java | 9 +++----
.../avro/compiler/idl/SchemaResolver.java | 16 ++++++-----
.../avro/compiler/schema/CloningVisitor.java | 18 ++++++++++++-
.../avro/compiler/schema/SchemaVisitor.java | 28 ++++++++++----------
.../compiler/schema/SchemaVisitorAction.java | 28 ++++++++++----------
.../apache/avro/compiler/schema/Schemas.java | 17 ++++++++++++
6 files changed, 75 insertions(+), 41 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/avro/blob/48b2abca/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/ResolvingVisitor.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/ResolvingVisitor.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/ResolvingVisitor.java
index 5fd4d24..e279e6a 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/ResolvingVisitor.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/ResolvingVisitor.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -11,11 +11,10 @@
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * permissions and limitations under the License.
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
-
package org.apache.avro.compiler.idl;
import com.google.common.base.Function;
http://git-wip-us.apache.org/repos/asf/avro/blob/48b2abca/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java
index 0195df4..a3860e3 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/idl/SchemaResolver.java
@@ -1,11 +1,13 @@
-/*
- * Copyright 2015 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
http://git-wip-us.apache.org/repos/asf/avro/blob/48b2abca/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java
index ccc222a..a5002f1 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/CloningVisitor.java
@@ -1,4 +1,20 @@
-
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.avro.compiler.schema;
import java.util.ArrayList;
http://git-wip-us.apache.org/repos/asf/avro/blob/48b2abca/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
index 4198355..bb79fb2 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitor.java
@@ -1,19 +1,19 @@
- /*
- * Copyright (c) 2001 - 2016, Zoltan Farkas All Rights Reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU Lesser General Public
- * License along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.apache.avro.compiler.schema;
http://git-wip-us.apache.org/repos/asf/avro/blob/48b2abca/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
index 81157aa..68a78dc 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/SchemaVisitorAction.java
@@ -1,19 +1,19 @@
- /*
- * Copyright (c) 2001 - 2016, Zoltan Farkas All Rights Reserved.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
*
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * You should have received a copy of the GNU Lesser General Public
- * License along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.apache.avro.compiler.schema;
http://git-wip-us.apache.org/repos/asf/avro/blob/48b2abca/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java
----------------------------------------------------------------------
diff --git a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java
index 3e8fee0..e56248f 100644
--- a/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java
+++ b/lang/java/compiler/src/main/java/org/apache/avro/compiler/schema/Schemas.java
@@ -1,3 +1,20 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package org.apache.avro.compiler.schema;
import com.google.common.base.Function;
[4/5] avro git commit: AVRO-2119: Run Apache Rat check on every java
build
Posted by ni...@apache.org.
AVRO-2119: Run Apache Rat check on every java build
Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/a79b4366
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/a79b4366
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/a79b4366
Branch: refs/heads/master
Commit: a79b4366305d8796aeac60bb7b68bfc86fbde804
Parents: 4165385
Author: Niels Basjes <nb...@bol.com>
Authored: Fri Dec 22 10:51:53 2017 +0100
Committer: Niels Basjes <nb...@bol.com>
Committed: Fri Dec 22 10:51:53 2017 +0100
----------------------------------------------------------------------
CHANGES.txt | 2 ++
pom.xml | 3 +++
2 files changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/avro/blob/a79b4366/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 008e230..098e3bb 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -103,6 +103,8 @@ Trunk (not yet released)
AVRO-2115: Java: Permit @Union annotations on fields of classes.
(Miguel Martinez-Espronceda via cutting).
+ AVRO-2119: Run Apache Rat check on every java build (Niels Basjes)
+
BUG FIXES
AVRO-1741: Python3: Fix error when codec is not in the header.
http://git-wip-us.apache.org/repos/asf/avro/blob/a79b4366/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index edb7d3f..5c0a8b8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -205,6 +205,9 @@
</profile>
<profile>
<id>rat</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
<build>
<plugins>
<plugin>