Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 399 Bytes

UnnecessaryDoubleInstantiation.md

File metadata and controls

11 lines (6 loc) · 399 Bytes

Pattern: Unnecessary Double instantiation

Issue: -

Description

It is unnecessary to instantiate Double objects. Instead just use the double literal with 'D identifier to force the type, such as 123.45d or 0.42d.

Further Reading