changeset 57:8c9542073cf4

Fixed package-private fields of inner classes.
author Michael Starzinger <michi@complang.tuwien.ac.at>
date Sun, 20 Mar 2011 21:01:31 +0100
parents ef7e8137da03
children 8cc04242b09e
files src/main/java/org/icedrobot/daneel/dex/AnnotationsDirectory.java src/main/java/org/icedrobot/daneel/dex/Code.java src/main/java/org/icedrobot/daneel/dex/DebugInfo.java
diffstat 3 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/org/icedrobot/daneel/dex/AnnotationsDirectory.java	Sun Mar 20 20:56:43 2011 +0100
+++ b/src/main/java/org/icedrobot/daneel/dex/AnnotationsDirectory.java	Sun Mar 20 21:01:31 2011 +0100
@@ -224,8 +224,8 @@
         public static final int VISIBILITY_RUNTIME = 0x01;
         public static final int VISIBILITY_SYSTEM  = 0x02;
 
-        protected final int visibility;
-        protected final AnnotationValue annotationValue;
+        final int visibility;
+        final AnnotationValue annotationValue;
 
         public Annotation(ByteBuffer buffer, DexFile dex) {
             visibility = buffer.get();
--- a/src/main/java/org/icedrobot/daneel/dex/Code.java	Sun Mar 20 20:56:43 2011 +0100
+++ b/src/main/java/org/icedrobot/daneel/dex/Code.java	Sun Mar 20 21:01:31 2011 +0100
@@ -915,10 +915,10 @@
      * {@code encoded_type_addr_pair} structures.
      */
     private static class TryCatchInfo {
-        protected final Label startLabel;
-        protected final Label endLabel;
-        protected final Label handlerLabel;
-        protected final String type;
+        final Label startLabel;
+        final Label endLabel;
+        final Label handlerLabel;
+        final String type;
 
         public TryCatchInfo(Label startLabel, Label endLabel,
                 Label handlerLabel, String type) {
@@ -934,7 +934,7 @@
      */
     private class PackedSwitchLabel extends Label {
         private final int size;
-        protected final Map<Integer, Label> map;
+        final Map<Integer, Label> map;
 
         public PackedSwitchLabel(ByteBuffer buffer, int pos) {
             if (buffer.getShort() != 0x0100)
@@ -957,7 +957,7 @@
      */
     private class SparseSwitchLabel extends Label {
         private final int size;
-        protected final Map<Integer, Label> map;
+        final Map<Integer, Label> map;
 
         public SparseSwitchLabel(ByteBuffer buffer, int pos) {
             if (buffer.getShort() != 0x0200)
--- a/src/main/java/org/icedrobot/daneel/dex/DebugInfo.java	Sun Mar 20 20:56:43 2011 +0100
+++ b/src/main/java/org/icedrobot/daneel/dex/DebugInfo.java	Sun Mar 20 21:01:31 2011 +0100
@@ -274,12 +274,12 @@
      * the {@code debug_info_item} state machine.
      */
     static class LocalVariable {
-        protected final int regNum;
-        protected final int nameIdx;
-        protected final int typeIdx;
-        protected final int sigIdx;
-        protected final Label startLabel;
-        protected Label endLabel;
+        final int regNum;
+        final int nameIdx;
+        final int typeIdx;
+        final int sigIdx;
+        final Label startLabel;
+        Label endLabel;
 
         public LocalVariable(int regNum, int nameIdx, int typeIdx, int sigIdx,
                 Label startLabel) {
@@ -303,7 +303,7 @@
      */
     static class LineNumberLabel extends Label {
         private final int pos;
-        protected final int line;
+        final int line;
 
         public LineNumberLabel(int pos, int line) {
             this.pos = pos;