~ubuntu-branches/ubuntu/vivid/cobertura/vivid-proposed

« back to all changes in this revision

Viewing changes to src/net/sourceforge/cobertura/instrument/Main.java

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2010-05-11 19:21:46 UTC
  • mfrom: (0.1.4 sid) (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100511192146-j742v5jsl89ztndu
Tags: 1.9.4.1+dfsg-2
* Now Build-Depends on libservlet2.5-java and add a missing Depends
  on the same package. (Closes: #580842). 
* Simplify list of JRE dependences for cobertura and drop JRE dependences for
  libcobertura-java as Java libraries are no longer required to depend on a
  JVM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
                                        {
183
183
                                                // Instrument class
184
184
                                                ClassReader cr = new ClassReader(entryBytes);
185
 
                                                ClassWriter cw = new ClassWriter(true);
 
185
                                                ClassWriter cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
186
186
                                                ClassInstrumenter cv = new ClassInstrumenter(projectData,
187
187
                                                                cw, ignoreRegexes, ignoreBranchesRegexes);
188
 
                                                cr.accept(cv, false);
 
188
                                                cr.accept(cv, 0);
189
189
        
190
190
                                                // If class was instrumented, get bytes that define the
191
191
                                                // class
353
353
                {
354
354
                        inputStream = new FileInputStream(file);
355
355
                        ClassReader cr = new ClassReader(inputStream);
356
 
                        cw = new ClassWriter(true);
 
356
                        cw = new ClassWriter(ClassWriter.COMPUTE_MAXS);
357
357
                        cv = new ClassInstrumenter(projectData, cw, ignoreRegexes, ignoreBranchesRegexes);
358
 
                        cr.accept(cv, false);
 
358
                        cr.accept(cv, 0);
359
359
                }
360
360
                catch (Throwable t)
361
361
                {