GitHub | 28 Jan 21:39 2015

[pmd/pmd] b17698: Created extra CSV output format 'csv_with_linecoun...

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: b1769846e553f7bc7eb94461fa2b80440611978d
      https://github.com/pmd/pmd/commit/b1769846e553f7bc7eb94461fa2b80440611978d
  Author: Jan van Nunen <jan.van.nunen <at> tiobe.com>
  Date:   2015-01-21 (Wed, 21 Jan 2015)

  Changed paths:
    M pmd-core/src/main/java/net/sourceforge/pmd/cpd/CPDConfiguration.java
    M pmd-core/src/main/java/net/sourceforge/pmd/cpd/CSVRenderer.java
    M pmd-core/src/main/java/net/sourceforge/pmd/cpd/GUI.java
    A pmd-core/src/main/java/net/sourceforge/pmd/cpd/Mark.java
    M pmd-core/src/main/java/net/sourceforge/pmd/cpd/Match.java
    M pmd-core/src/main/java/net/sourceforge/pmd/cpd/MatchAlgorithm.java
    M pmd-core/src/main/java/net/sourceforge/pmd/cpd/SimpleRenderer.java
    M pmd-core/src/main/java/net/sourceforge/pmd/cpd/VSRenderer.java
    M pmd-core/src/main/java/net/sourceforge/pmd/cpd/XMLRenderer.java
    A pmd-core/src/test/java/net/sourceforge/pmd/cpd/CSVRendererTest.java
    A pmd-core/src/test/java/net/sourceforge/pmd/cpd/MarkTest.java
    M pmd-core/src/test/java/net/sourceforge/pmd/cpd/MatchTest.java
    M pmd-core/src/test/java/net/sourceforge/pmd/cpd/XMLRendererTest.java
    M pmd-java/src/test/java/net/sourceforge/pmd/cpd/MatchAlgorithmTest.java

  Log Message:
  -----------
  Created extra CSV output format 'csv_with_linecount_per_file' which outputs the correct line count per file.

Some of the tokenizers ignore comments and therefore the line count of a
duplication can differ per file. Take for example the following files:

(Continue reading)

GitHub | 28 Jan 20:24 2015

[pmd/pmd] 4be14a: #1308 PMD runs endlessly on some generated files

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: 4be14adebbd96b50d75ce3162662fc60379694d4
      https://github.com/pmd/pmd/commit/4be14adebbd96b50d75ce3162662fc60379694d4
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2015-01-24 (Sat, 24 Jan 2015)

  Changed paths:
    M pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/AbstractNode.java
    M pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/Node.java
    M pmd-core/src/main/java/net/sourceforge/pmd/lang/ast/xpath/NodeIterator.java
    M pmd-core/src/main/java/net/sourceforge/pmd/lang/symboltable/AbstractScope.java
    M pmd-xml/src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlNodeInvocationHandler.java
    M src/site/markdown/overview/changelog.md

  Log Message:
  -----------
  #1308 PMD runs endlessly on some generated files

  Commit: 172c20efa683ba81d3a215f248a7e988777c06ed
      https://github.com/pmd/pmd/commit/172c20efa683ba81d3a215f248a7e988777c06ed
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2015-01-24 (Sat, 24 Jan 2015)

  Changed paths:
    M pmd-java/src/main/resources/rulesets/java/design.xml

  Log Message:
  -----------
  Small performance improvements for rule FieldDeclarationsShouldBeAtStartOfClass
(Continue reading)

GitHub | 22 Jan 19:33 2015

[pmd/pmd] 9522ab: #1306 False positive on duplicate when using stati...

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: 9522ab3cd424182739e47bd16d0dde0974c8aa7e
      https://github.com/pmd/pmd/commit/9522ab3cd424182739e47bd16d0dde0974c8aa7e
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2015-01-22 (Thu, 22 Jan 2015)

  Changed paths:
    M pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/ImportWrapper.java
    M pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/imports/DuplicateImportsRule.java
    M pmd-java/src/main/java/net/sourceforge/pmd/lang/java/typeresolution/ClassTypeResolver.java
    M pmd-java/src/test/java/net/sourceforge/pmd/lang/java/rule/imports/ImportsRulesTest.java
    M pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/imports/xml/DuplicateImports.xml
    M src/site/markdown/overview/changelog.md

  Log Message:
  -----------
  #1306 False positive on duplicate when using static imports

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Pmd-devel mailing list
(Continue reading)

GitHub | 21 Jan 22:09 2015

[pmd/pmd] 0da50b: Fix XMLParser test to expect more accurate line nu...

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: 0da50b9e893588607960898bca055508e4d12e09
      https://github.com/pmd/pmd/commit/0da50b9e893588607960898bca055508e4d12e09
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2015-01-19 (Mon, 19 Jan 2015)

  Changed paths:
    M pmd-xml/src/test/java/net/sourceforge/pmd/lang/xml/XmlParserTest.java

  Log Message:
  -----------
  Fix XMLParser test to expect more accurate line numbers/columns

  Commit: 6ca24d1f8a34ea6bffbd85e89913eaaf617a4879
      https://github.com/pmd/pmd/commit/6ca24d1f8a34ea6bffbd85e89913eaaf617a4879
  Author: Andreas Dangel <adangel <at> users.sourceforge.net>
  Date:   2015-01-19 (Mon, 19 Jan 2015)

  Changed paths:
    A pmd-xml/src/main/java/net/sourceforge/pmd/lang/xml/ast/DOMLineNumbers.java
    M pmd-xml/src/main/java/net/sourceforge/pmd/lang/xml/ast/XmlParser.java
    M pmd-xml/src/test/java/net/sourceforge/pmd/lang/xml/XmlParserTest.java
    M pmd-xml/src/test/java/net/sourceforge/pmd/lang/xml/rule/AbstractDomXmlRuleTest.java

  Log Message:
  -----------
  Implement DOMLineNumbers to determine the line numbers after the parsing

  Commit: a2a8d6c227212aa3ad66c2a10cad3314660c1714
(Continue reading)

GitHub | 18 Jan 12:23 2015

[pmd/pmd] 779ea0: Created branch to add Matlab support

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: 779ea006477454af5a90f90378a6ad379625b416
      https://github.com/pmd/pmd/commit/779ea006477454af5a90f90378a6ad379625b416
  Author: Jan van Nunen <jan.van.nunen <at> tiobe.com>
  Date:   2015-01-07 (Wed, 07 Jan 2015)

  Log Message:
  -----------
  Created branch to add Matlab support

  Commit: 16fabee7c380eae9e56417652a57ea2b61aca5df
      https://github.com/pmd/pmd/commit/16fabee7c380eae9e56417652a57ea2b61aca5df
  Author: Jan van Nunen <jan.van.nunen <at> tiobe.com>
  Date:   2015-01-07 (Wed, 07 Jan 2015)

  Changed paths:
    A pmd-matlab/etc/grammar/matlab.jj
    A pmd-matlab/pom.xml
    A pmd-matlab/src/main/ant/alljavacc.xml
    A pmd-matlab/src/main/java/net/sourceforge/pmd/cpd/MatlabLanguage.java
    A pmd-matlab/src/main/java/net/sourceforge/pmd/cpd/MatlabTokenizer.java
    A pmd-matlab/src/main/java/net/sourceforge/pmd/lang/matlab/MatlabHandler.java
    A pmd-matlab/src/main/java/net/sourceforge/pmd/lang/matlab/MatlabLanguageModule.java
    A pmd-matlab/src/main/java/net/sourceforge/pmd/lang/matlab/MatlabParser.java
    A pmd-matlab/src/main/java/net/sourceforge/pmd/lang/matlab/MatlabTokenManager.java
    A pmd-matlab/src/main/resources/META-INF/services/net.sourceforge.pmd.cpd.Language
    A pmd-matlab/src/main/resources/META-INF/services/net.sourceforge.pmd.lang.Language
    A pmd-matlab/src/site/markdown/index.md
    A pmd-matlab/src/site/site.xml
(Continue reading)

GitHub | 17 Jan 11:36 2015

[pmd/pmd] 24a435: RedundantFieldInitializer - consider binary litera...

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: 24a435a42e5cbe78cdeda54de329365608d55ffc
      https://github.com/pmd/pmd/commit/24a435a42e5cbe78cdeda54de329365608d55ffc
  Author: Andreas Dangel <andreas <at> yildun>
  Date:   2015-01-17 (Sat, 17 Jan 2015)

  Changed paths:
    M pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/optimizations/RedundantFieldInitializerRule.java
    M pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/optimizations/xml/RedundantFieldInitializer.xml

  Log Message:
  -----------
  RedundantFieldInitializer - consider binary literals and underscores (java7)

  Commit: 9d96d974de3a9881355a5682c80e62e023b32d36
      https://github.com/pmd/pmd/commit/9d96d974de3a9881355a5682c80e62e023b32d36
  Author: Andreas Dangel <andreas <at> yildun>
  Date:   2015-01-17 (Sat, 17 Jan 2015)

  Changed paths:
    M pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/sunsecure/MethodReturnsInternalArrayRule.java
    M pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/sunsecure/xml/MethodReturnsInternalArray.xml
    M src/site/markdown/overview/changelog.md

  Log Message:
  -----------
  #1299 MethodReturnsInternalArray false positive

Compare: https://github.com/pmd/pmd/compare/89572efe0d1e...9d96d974de3a
(Continue reading)

Munivenkatakrishna Boppana | 13 Jan 18:40 2015
Picon

require help on Find out infinite loop

Hi Team,

Good Morning.

We need small  help on PMD configuration.

We are working on one of the requirement in my application. In my application, Some of the pages are loading very slowly due to the infinite loops and so many third party systems interacting. We have to find out the infinite loops in each java application, I have installed the PMD tools and FinfBugs tools in my project. But i am unable to find the infinite loops.  Please  find the example code as shown below.


public static void main(String a[]) {
       
   
    while(true) {
        System.out.println("hello");
    }
       
   
    }

}

I am expecting that. i will get error in while loop line.  Is there  any way to find out the  error in while loop line. please help me on this.



Regards,
Muni Venkat Boppana

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
Abdelmounim Ouchani | 12 Jan 12:52 2015
Picon

ParseException : Encountered "<IN_TAG_ERROR> ...Was expecting one of <ATTR_NAME>..">"..."/>"..

Hello,

by analyzing the following code in jsp PMD Rule Designer 

<HTML> <BODY>
<P class="MajorHeading">Some text</P>
 <a title="test" class="all-remarks-link" href="<c:url value="/home/contract/test-result.html?wr=${param.wr}&amp;test=${testResult.test.id}"/>" target="_blank">
 todo
 </a>
</BODY> </HTML>

I get the following error

ParseException : Encountered "<IN_TAG_ERROR> ...Was expecting one of <ATTR_NAME>..">"..."/>".. (at  ligne 3 column 63 )



thanks for your help.

Regards,
Mounim
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
GitHub | 16 Jan 21:40 2015

[pmd/pmd] 89572e: #1298 Member variable int type with value 0xff0000...

  Branch: refs/heads/master
  Home:   https://github.com/pmd/pmd
  Commit: 89572efe0d1e8c62dfd03ed88755a8a344b097d7
      https://github.com/pmd/pmd/commit/89572efe0d1e8c62dfd03ed88755a8a344b097d7
  Author: Andreas Dangel <andreas <at> yildun>
  Date:   2015-01-16 (Fri, 16 Jan 2015)

  Changed paths:
    M pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/optimizations/RedundantFieldInitializerRule.java
    M pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/optimizations/xml/RedundantFieldInitializer.xml
    M src/site/markdown/overview/changelog.md

  Log Message:
  -----------
  #1298 Member variable int type with value 0xff000000 causes processing error

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
Rory O'Donnell | 16 Jan 14:26 2015
Picon

Early Access builds for JDK 9 b45, JDK 8u40 b21 & JDK 7u80 b04 are available on java.net

Hi Andreas,

Now that JDK 9 Early Access build images are modular [1], there is a fresh
Early Access build for JDK 9 b45 available on java.net.
The summary of  changes are listed here

In addition, there are new Early Access builds for the ongoing update releases.

The Early Access build for JDK 8u40 b21 is available on java.net, with the
summary of changes listed here.

Finally, the Early Access build for JDK 7u80 b04 is available on java.net,
with the summary of changes listed here.

As we enter the later phases of development for JDK 7u80 & JDK 8u40,
please log any show stoppers as soon as possible.

Rgds,Rory

[1] http://mreinhold.org/blog/jigsaw-modular-images

-- Rgds,Rory O'Donnell Quality Engineering Manager Oracle EMEA , Dublin, Ireland
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel
GitHub | 21 Dec 16:56 2014

[pmd/pmd]

  Branch: refs/tags/pmd_releases/5.2.3
  Home:   https://github.com/pmd/pmd
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Pmd-devel mailing list
Pmd-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmd-devel

Gmane