2 * Sonar, entreprise quality control tool.
\r
3 * Copyright (C) 2007-2008 Hortis-GRC SA
\r
4 * mailto:be_agile HAT hortis DOT ch
\r
6 * Sonar is free software; you can redistribute it and/or
\r
7 * modify it under the terms of the GNU Lesser General Public
\r
8 * License as published by the Free Software Foundation; either
\r
9 * version 3 of the License, or (at your option) any later version.
\r
11 * Sonar is distributed in the hope that it will be useful,
\r
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
\r
14 * Lesser General Public License for more details.
\r
16 * You should have received a copy of the GNU Lesser General Public
\r
17 * License along with Sonar; if not, write to the Free Software
\r
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
\r
20 package org.sonar.samples.duplicated_lines_within_package;
\r
22 public class DuplicatedLinesInSamePackage1 {
\r
24 public DuplicatedLinesInSamePackage1() {
\r
30 public void duplicatedMethodInSameClass1() {
\r
31 int intergerToBeIncremented = 0;
\r
32 while (intergerToBeIncremented < 100) {
\r
33 intergerToBeIncremented++;
\r
35 int intergerToBeIncremented2 = 0;
\r
36 while (intergerToBeIncremented2 < 100) {
\r
37 intergerToBeIncremented2++;
\r
40 int intergerToBeIncremented3 = 0;
\r
41 while (intergerToBeIncremented3 < 100) {
\r
42 intergerToBeIncremented3++;
\r
44 int intergerToBeIncremented4 = 0;
\r
45 while (intergerToBeIncremented4 < 100) {
\r
46 intergerToBeIncremented4++;
\r
48 int intergerToBeIncremented5 = 0;
\r
49 while (intergerToBeIncremented5 < 100) {
\r
50 intergerToBeIncremented5++;
\r
52 int intergerToBeIncremented6 = 0;
\r
53 while (intergerToBeIncremented6 < 100) {
\r
54 intergerToBeIncremented6++;
\r
56 int intergerToBeIncremented7 = 0;
\r
57 while (intergerToBeIncremented7 < 100) {
\r
58 intergerToBeIncremented7++;
\r