changeset 21:e608a1c1471b

CODETOOLS-7902013 Inconsistent comparison report with inner classes.
author afedorch
date Tue, 08 Aug 2017 17:53:36 -0700
parents e2b20ae96d47
children 719a11e4bd98
files src/classes/com/sun/tdk/jcov/instrument/DataMethodEntryOnly.java src/classes/com/sun/tdk/jcov/processing/CombinerDataProcessor.java
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/classes/com/sun/tdk/jcov/instrument/DataMethodEntryOnly.java	Wed Jul 19 17:34:34 2017 -0700
+++ b/src/classes/com/sun/tdk/jcov/instrument/DataMethodEntryOnly.java	Tue Aug 08 17:53:36 2017 -0700
@@ -223,6 +223,10 @@
         entryBlock.readScale(s);
     }
 
+    public void setScale(Scale scale) {
+        entryBlock.scale = scale;
+    }
+
     @Override
     public Scale getScale() {
         return entryBlock.scale;
--- a/src/classes/com/sun/tdk/jcov/processing/CombinerDataProcessor.java	Wed Jul 19 17:34:34 2017 -0700
+++ b/src/classes/com/sun/tdk/jcov/processing/CombinerDataProcessor.java	Tue Aug 08 17:53:36 2017 -0700
@@ -112,6 +112,7 @@
                         // for -type=method methods exist witout blocks and branches
                         if (nm instanceof DataMethodEntryOnly) {
                             nm.setCount(m.getCount());
+                            ((DataMethodEntryOnly) nm).setScale(m.getScale());
                         }
                         // new created method will be added to the newClass
                     }