ICU-11424 Bugfix: RemoveTransliterator can cause NoClassDefFoundError

Make RemoveTransliterator._ID final, to ensure that the compiler
inlines it, so that it won't be null when register() accesses it.

X-SVN-Rev: 36862
This commit is contained in:
Fredrik Roubert 2014-12-11 20:26:25 +00:00
parent 1477b9b8a2
commit 35f08c68e9

View File

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 1996-2010, International Business Machines Corporation and *
* Copyright (C) 1996-2014, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -16,7 +16,7 @@ class RemoveTransliterator extends Transliterator {
/**
* ID for this transliterator.
*/
private static String _ID = "Any-Remove";
private static final String _ID = "Any-Remove";
/**
* System registration hook.