Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–216 unchanged (216 lines)
217 * <p>Checks if the locale specified is in the list of available locales.</p>
218 *
219 * @param locale the Locale object to check if it is available
220 * @return true if the locale is a known locale
221 */
222 public static boolean isAvailableLocale(Locale locale) {
223 return cAvailableLocaleSet.contains(locale);
224 }
225
226 //-----------------------------------------------------------------------
227 /**
228 * <p>Obtains the list of languages supported for a given country.</p>
229 *
…lines 230–292 unchanged (63 lines)

After

…lines 1–216 unchanged (216 lines)
217 * <p>Checks if the locale specified is in the list of available locales.</p>
218 *
219 * @param locale the Locale object to check if it is available
220 * @return true if the locale is a known locale
221 */
222 public static boolean isAvailableLocale(Locale locale) {
223 return availableLocaleList().contains(locale);
224 }
225
226 //-----------------------------------------------------------------------
227 /**
228 * <p>Obtains the list of languages supported for a given country.</p>
229 *
…lines 230–292 unchanged (63 lines)

Before

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "lang"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ArrayList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Collections"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashSet"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Locale"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
block_comment "/**\n * <p>Operations to assist when working with a {@link Lo"...
class_declaration
modifiers
public "public"
class "class"
identifier "LocaleUtils"
class_body
{ "{"
block_comment "/** Unmodifiable list of available locales. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "List"
variable_declarator
identifier "cAvailableLocaleList"
; ";"
block_comment "/** Unmodifiable set of available locales. */"
field_declaration
modifiers
private "private"
static "static"
type_identifier "Set"
variable_declarator
identifier "cAvailableLocaleSet"
; ";"
block_comment "/** Unmodifiable map of language locales by country. */"
field_declaration (+23 nodes collapsed)
block_comment "/** Unmodifiable map of country locales by language. */"
field_declaration (+23 nodes collapsed)
static_initializer (+38 nodes collapsed)
block_comment "/**\n * <p><code>LocaleUtils</code> instances should NOT "...
constructor_declaration
modifiers
public "public"
identifier "LocaleUtils"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Converts a String to a Locale.</p>\n *\n "...
method_declaration (+422 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of locales to search through "...
method_declaration (+26 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of locales to search through "...
method_declaration (+198 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains an unmodifiable list of installed loca"...
method_declaration
modifiers
public "public"
static "static"
type_identifier "List"
identifier "availableLocaleList"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "cAvailableLocaleList"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains an unmodifiable set of installed local"...
method_declaration (+70 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if the locale specified is in the list "...
method_declaration
modifiers
public "public"
static "static"
boolean_type "boolean"
identifier "isAvailableLocale"
formal_parameters
( "("
formal_parameter
type_identifier "Locale"
identifier "locale"
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
identifier "cAvailableLocaleSet"
. "."
identifier "contains"
argument_list
( "("
identifier "locale"
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of languages supported for a "...
method_declaration (+220 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of countries supported for a "...
method_declaration (+238 nodes collapsed)
} "}"

After

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "lang"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "ArrayList"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Arrays"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Collections"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashMap"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "HashSet"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "List"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Locale"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Map"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Set"
; ";"
block_comment "/**\n * <p>Operations to assist when working with a {@link Lo"...
class_declaration
modifiers
public "public"
class "class"
identifier "LocaleUtils"
class_body
{ "{"
block_comment "/** Unmodifiable list of available locales. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
type_identifier "List"
variable_declarator
identifier "cAvailableLocaleList"
; ";"
block_comment "/** Unmodifiable set of available locales. */"
field_declaration
modifiers
private "private"
static "static"
type_identifier "Set"
variable_declarator
identifier "cAvailableLocaleSet"
; ";"
block_comment "/** Unmodifiable map of language locales by country. */"
field_declaration (+23 nodes collapsed)
block_comment "/** Unmodifiable map of country locales by language. */"
field_declaration (+23 nodes collapsed)
static_initializer (+38 nodes collapsed)
block_comment "/**\n * <p><code>LocaleUtils</code> instances should NOT "...
constructor_declaration
modifiers
public "public"
identifier "LocaleUtils"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Converts a String to a Locale.</p>\n *\n "...
method_declaration (+422 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of locales to search through "...
method_declaration (+26 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of locales to search through "...
method_declaration (+198 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains an unmodifiable list of installed loca"...
method_declaration
modifiers
public "public"
static "static"
type_identifier "List"
identifier "availableLocaleList"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
identifier "cAvailableLocaleList"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains an unmodifiable set of installed local"...
method_declaration (+70 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if the locale specified is in the list "...
method_declaration
modifiers
public "public"
static "static"
boolean_type "boolean"
identifier "isAvailableLocale"
formal_parameters
( "("
formal_parameter
type_identifier "Locale"
identifier "locale"
) ")"
block
{ "{"
return_statement
return "return"
method_invocation
method_invocation
identifier "availableLocaleList"
argument_list
( "("
) ")"
. "."
identifier "contains"
argument_list
( "("
identifier "locale"
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of languages supported for a "...
method_declaration (+220 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Obtains the list of countries supported for a "...
method_declaration (+238 nodes collapsed)
} "}"