Page 1 of 1

Use of Static Class methods

Posted: 20 Aug 2020, 03:37
by mmilen
Hi Guys / Gals,

I use a number of static helper methods like the one below. Is there any performance or thread safety issues with that approach.

Code: Select all

public static boolean isMasterTeacher (User p) {
		return p.containsProperty(SFSVAR.SFSGAME_PROPERTY_MASTER_TEACHER);
 } 

Thank you for the great service.

Re: Use of Static Class methods

Posted: 20 Aug 2020, 08:16
by Lapo
Hi,
no, I don't see any problem with that.

Cheers