ionkin42
(Mikhail Ionkin)
September 4, 2018, 3:54am
1
Java Conventions for String concatenation seems to old, if the concatenation is not in a loop, because the Java compiler silently converts
String a = b + c + d;
into
String a = new StringBuilder(b).append(c).append(d).toString();
Source: https://docs.oracle.com/javase/6/docs/api/java/lang/String.html
Can I use simple concatenation?
dkayiwa
(Daniel Kayiwa)
September 4, 2018, 5:57pm
2
Would you like to edit our conventions page to reflect this?
Yes, Using StringBuilder
is ideal when there are more than 2 string operands being concatenated. As we are always single threaded which initiated from the servlet container for each HTTP request, we do not need to worry about thread-safe behavior that provided by StringBuffer
ionkin42
(Mikhail Ionkin)
September 5, 2018, 4:25pm
4
Yes, I want do it. But now I can’t log in to Wiki with use OpenMRS ID (although I can log in to OpenMRS).
dkayiwa
(Daniel Kayiwa)
September 5, 2018, 6:25pm
5
@ionkin42 did you report that to help desk?
r0bby
(Robert O'Connor)
September 5, 2018, 9:26pm
6
Did yiu ever explicitly ask for access to JIRA and the wiki – they’re separate things. This was done to mitigate spam.
ionkin42
(Mikhail Ionkin)
September 8, 2018, 5:43pm
8
It is common problem:
Unable to log into OpenMRS Wiki but I can log into id.openmrs.org
PS: I sent case to help desk. Can we edit a auth error description?