Checkstyle error for Duplicate Lines - SOLUTION

"Macho Man" <[email protected]>
Newsgroups gmane.comp.java.audit.checkstyle.user
Organization Lycos. Inc.
Message-ID <20071120045245.HM.0000000000000Cr@macho_240.bos-mail-wwl13.lycos.com>
Hi -

I have a Java application, where I have the Code Review tool "Checkstyle" enabled.

I have enocuntered a Checktsyle error - "Duplicate lines found from line x for the next Y lines".

I dont have the wildest idea why this is error os coming up as my code is not duplicated in these lines

Any pointers will be appreciated.

I saw a similar error when i surfed the Net, in the following portion of code -

"Found duplicate of 22 lines in /Volumes/Data/paul/projects/jakarta-commons/jelly/jelly-tags/bsf/src/java/org/apache/commons/jelly/tags/bsf/JPythonTagLibrary.java, starting from line 1"

How can this be duplicate?

1 /*

2 * Copyright 2002,2004 The Apache Software Foundation.

3 *

4 * Licensed under the Apache License, Version 2.0 (the "License");

5 * you may not use this file except in compliance with the License.

6 * You may obtain a copy of the License at

7 *

8 * http://www.apache.org/licenses/LICENSE-2.0

9 *

10 * Unless required by applicable law or agreed to in writing, software

11 * distributed under the License is distributed on an "AS IS" BASIS,

12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

13 * See the License for the specific language governing permissions and

14 * limitations under the License.

15 */

16 package org.apache.commons.jelly.tags.bsf;

17

18 /*** Describes the Taglib. This class could be generated by XDoclet

19 *

20 * @author <a href="mailto:[email protected]">James Strachan</a>

21 * @version $Revision: 155420 $

22 */

23 public class JavaScriptTagLibrary extends BSFTagLibrary {

24

25 public JavaScriptTagLibrary() {

26 setLanguage( "javascript" );

27 }

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Checkstyle-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/checkstyle-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.