if (position != -1) { this.subplots.remove(position); subplot.setParent(null); subplot.removeChangeListener(this); this.totalWeight -= subplot.getWeight(); CategoryAxis domain = getDomainAxis(); if (domain != null) { domain.configure(); } fireChangeEvent(); }
if (position != -1) { this.subplots.remove(position); subplot.setParent(null); subplot.removeChangeListener(this); this.totalWeight -= subplot.getWeight(); ValueAxis domain = getDomainAxis(); if (domain != null) { domain.configure(); } fireChangeEvent(); }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainCategoryPlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (position != -1) {
1
if (position != -1) {
2
            this.subplots.remove(position);
2
            this.subplots.remove(position);
3
            subplot.setParent(null);
3
            subplot.setParent(null);
4
            subplot.removeChangeListener(this);
4
            subplot.removeChangeListener(this);
5
            this.totalWeight -= subplot.getWeight();
5
            this.totalWeight -= subplot.getWeight();
6
            CategoryAxis domain = getDomainAxis();
6
            ValueAxis domain = getDomainAxis();
7
            if (domain != null) {
7
            if (domain != null) {
8
                domain.configure();
8
                domain.configure();
9
            }
9
            }
10
            fireChangeEvent();
10
            fireChangeEvent();
11
        }
11
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0