Zum Inhalt springen

Abbreviation And Hungarian (ARCH4011)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

Key java.naming.no-hungarian-notation · Severity info · Category naming

Hungarian-notation type prefixes like strName, iCount, b_flag, and cryptic abbreviations add noise the type system already provides.

public class User {
private String strName;
private int iCount;
private boolean bActive;
}
public class User {
private String name;
private int count;
private boolean active;
}

Drop the type prefixes and name variables clearly for their purpose, without abbreviations.