avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nielsbas...@apache.org
Subject [1/5] avro git commit: AVRO-2118: Reverting changes by Thiruvalluvan M G <thiru@startsmartlabs.com> from commit 9132015450a2ad6f56cd582b393e8f1b8df573c9
Date Fri, 22 Dec 2017 21:59:14 GMT
Repository: avro
Updated Branches:
  refs/heads/master 5040c6413 -> 2e25d2edd


AVRO-2118: Reverting changes by Thiruvalluvan M G <thiru@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 <nbasjes@bol.com>
Authored: Thu Dec 21 18:24:35 2017 +0100
Committer: Niels Basjes <nbasjes@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;
 
 }


Mime
View raw message