A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1615 below:

[java] How to resolve AvoidInstantiatingObjectsInLoops with Date? · Issue #1615 · pmd/pmd · GitHub

Affects PMD Version:

2.2+

Rule:

AvoidInstantiatingObjectsInLoops

Description:

This rule is generally a good practice. However, when a process needs to query the current date, I'm not sure of a way to accomplish this with the Java standard library without using the new Date() constructor. Could someone point out a way to do this?

Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]

Gradle


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4