MCPcopy Create free account
hub / github.com/PCGen/pcgen / deprecationCheck

Method deprecationCheck

code/src/java/pcgen/persistence/lst/LstUtils.java:51–60  ·  view source on GitHub ↗

Checks a LST token to see if it's deprecated @param token @param obj @param value

(LstToken token, CDOMObject obj, String value)

Source from the content-addressed store, hash-verified

49 * @param value
50 */
51 public static void deprecationCheck(LstToken token, CDOMObject obj, String value)
52 {
53 if (token instanceof DeprecatedToken)
54 {
55 final String msg = LanguageBundle.getFormattedString("Warnings.LstTokens.Deprecated", //$NON-NLS-1$
56 token.getTokenName(), value, obj.getDisplayName(), obj.getSourceURI(),
57 ((DeprecatedToken) token).getMessage(obj, value));
58 deprecationWarning(msg);
59 }
60 }
61
62 /**
63 * Checks to see if a LST Token is deprecated

Callers 7

newBonusMethod · 0.95
parseLineMethod · 0.95
parseLineMethod · 0.95
parseLineMethod · 0.95
parseLineMethod · 0.95
parseMiscGameInfoLineMethod · 0.95
parseLineMethod · 0.95

Calls 6

getFormattedStringMethod · 0.95
deprecationWarningMethod · 0.95
getTokenNameMethod · 0.65
getDisplayNameMethod · 0.65
getSourceURIMethod · 0.65
getMessageMethod · 0.65

Tested by

no test coverage detected