From 01d508afceeeb66274180db92902c97883dc0213 Mon Sep 17 00:00:00 2001 From: Sam Pottinger Date: Mon, 25 Nov 2019 14:53:36 -0800 Subject: [PATCH] Minor formatting fixes on PR #33. --- core/src/processing/data/Table.java | 14 +++++++------- core/test/processing/data/TableTest.java | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/src/processing/data/Table.java b/core/src/processing/data/Table.java index 538672d9a..576b38815 100644 --- a/core/src/processing/data/Table.java +++ b/core/src/processing/data/Table.java @@ -1038,7 +1038,7 @@ public class Table { // Class sketchClass = sketch.getClass(); Class sketchClass = enclosingObject.getClass(); targetField = sketchClass.getDeclaredField(fieldName); - // PApplet.println("found " + targetField); +// PApplet.println("found " + targetField); Class targetArray = targetField.getType(); if (!targetArray.isArray()) { // fieldName is not an array @@ -1053,20 +1053,20 @@ public class Table { } // Object enclosingObject = sketch; - // PApplet.println("enclosing obj is " + enclosingObject); +// PApplet.println("enclosing obj is " + enclosingObject); Class enclosingClass = target.getEnclosingClass(); Constructor con = null; try { if (enclosingClass == null) { con = target.getDeclaredConstructor(); //new Class[] { }); - // PApplet.println("no enclosing class"); +// PApplet.println("no enclosing class"); } else { con = target.getDeclaredConstructor(new Class[] { enclosingClass }); - // PApplet.println("enclosed by " + enclosingClass.getName()); +// PApplet.println("enclosed by " + enclosingClass.getName()); } if (!con.canAccess(null)) { - // System.out.println("setting constructor to public"); +// System.out.println("setting constructor to public"); con.setAccessible(true); } } catch (SecurityException e) { @@ -1082,7 +1082,7 @@ public class Table { if (getColumnIndex(name, false) != -1) { inuse.add(field); } else { - // System.out.println("skipping field " + name); +// System.out.println("skipping field " + name); } } @@ -1158,7 +1158,7 @@ public class Table { Array.set(outgoing, index++, item); } if (!targetField.canAccess(enclosingObject)) { - // PApplet.println("setting target field to public"); +// PApplet.println("setting target field to public"); targetField.setAccessible(true); } // Set the array in the sketch diff --git a/core/test/processing/data/TableTest.java b/core/test/processing/data/TableTest.java index c9226842c..ddeb77bc1 100644 --- a/core/test/processing/data/TableTest.java +++ b/core/test/processing/data/TableTest.java @@ -36,4 +36,4 @@ public class TableTest { Assert.assertEquals(people[0].name, "Person1"); Assert.assertEquals(people[0].age, 30); } -} \ No newline at end of file +}