1

In the source, there are some '$'. I don't know about these '$' means. Where does these '$' come from? Java, or android?

public static synchronized PreferenceUtil instance(Context $context) {
  if (_instance == null)
     _instance = new PreferenceUtil($context);
  return _instance;
}

It is also difficult to find the answer of interest and search for $. Could you anyone help?

myoungjin
  • 895
  • 1
  • 13
  • 27

1 Answers1

0

It means someone has a background in another language and is naming his variables according to its preferences (perhaps marking method parameters with a $ prefix).

Even though it's syntactically correct, it makes code harder to read for other Java developers, since Java has its own recommended styles.

Kayaman
  • 72,141
  • 5
  • 83
  • 121