[prev in list] [next in list] [prev in thread] [next in thread]
List: forgerock-commons
Subject: [Commons] Bitbucket - James Phillpotts has pushed changes to Commons/forgerock-commons (master)
From: ForgeRock Stash <stash () forgerock ! org>
Date: 2016-08-30 12:35:40
Message-ID: 369708523.39961.1472560540954.JavaMail.atlbitbucket () stash ! internal ! forgerock ! com
[Download RAW message or body]
[Attachment #2 (text/html)]
<!doctype html>
<html lang="en">
<head></head>
<body class="bitbucket-theme fullwidth">
<table width="100%" class="fullwidth">
<tbody>
<tr>
<td class="body-cell" colspan="3">
<table width="100%">
<tbody>
<tr>
<td bgcolor="#f5f5f5" class="header" style="background-color: #f5f5f5; border-bottom: \
1px solid #cccccc; padding-left: 20px; height: 50px; padding-top: 10px; \
padding-bottom: 10px; font-size: 18px; font-family: Arial" height="50"><a \
href="https://stash.forgerock.org/projects/COMMONS" style="color: #3b73af; \
text-decoration: none; font-size: 17px; font-weight: bold; padding-bottom: \
10px">Commons</a> / <a \
href="https://stash.forgerock.org/projects/COMMONS/repos/forgerock-commons/browse" \
style="color: #3b73af; text-decoration: none; font-size: 17px; font-weight: bold; \
padding-bottom: 10px">forgerock-commons</a><br> <div style="margin: 0; padding: 0; \
margin-top: 3px"> James Phillpotts has
<span class="il">pushed changes</span> to: 'master'
</div></td>
</tr>
<tr>
<td>
<table border="0" width="100%" style="width:100%;min-width:100%">
<tbody>
<tr>
<td style="padding-right:10px;font-size:13px;font-family:Arial" valign="top" \
nowrap><a href="https://stash.forgerock.org/projects/COMMONS/repos/forgerock-commons/commits/4d5ac13db831b19f7be489280385ff3375edc89e" \
style="text-decoration: none; color: #3c78b5;font-family: monospace;; color: #3b73af; \
text-decoration: none">4d5ac13db83</a></td> <td width="100%" \
style="width:100%;min-width:100%;padding-right:10px;font-size:13px;font-family:Arial" \
valign="top"><a style="text-decoration: none; color: #3c78b5; color: #3b73af; \
text-decoration: none" \
href="https://bugster.forgerock.org/jira/browse/COMMONS-118">COMMONS-118</a> \
LocalizableString should support a fallback value</td> <td nowrap valign="top" \
style="font-size:13px;font-family:Arial;text-align:left;padding-right:1em;">James \
Phillpotts</td> <td nowrap valign="top" \
style="font-size:13px;font-family:Arial;text-align:right;"><time title="26 August \
2016 11:20 AM" datetime="2016-08-26T11:20:57+0100" class="deprecated">26 Aug - 11:20 \
AM</time></td> </tr>
<tr>
<td></td>
<td colspan="3">
<table class="aui" style="border-collapse: collapse; margin: 20px 0; width: 100%; \
margin-top: 5px"> <tbody>
<tr style="background: #ffffff; color: #333333">
<td style="font-size:13px;font-family:Arial;padding-top:2px;padding-right:10px;margin:0;; \
padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid \
#cccccc; border-top: 1px solid #cccccc" valign="top"><a style="text-decoration: none; \
color: #3c78b5; color: #3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/COMMONS/repos/forgerock-commons/browse?at=m \
aster">util/forgerock-util/src/mai...rg/forgerock/util/i18n/LocalizableString.java</a></td>
<td style="font-size:13px;font-family:Arial;padding-top:2px;text-align:right \
!important;margin:0;; padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc; border-top: 1px solid #cccccc" nowrap \
valign="top"><a style="text-decoration: none; color: #3c78b5; color: #3b73af; \
text-decoration: none" \
href="https://stash.forgerock.org/projects/COMMONS/repos/forgerock-commons/commits/4d5 \
ac13db831b19f7be489280385ff3375edc89e#util/forgerock-util/src/main/java/org/forgerock/util/i18n/LocalizableString.java">View \
changes</a></td> </tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">18</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">18</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">import java.net.URI;</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">19</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">19</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">import java.net.URISyntaxException;</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">20</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">20</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">import java.util.MissingResourceException;</td> </tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">21</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">import java.util.Objects;</td> </tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">21</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">22</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">22</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">23</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">/**</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">23</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">24</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * Represents a String which could be local \
izable. If it is localizable it needs to be in the following format,</td>
</tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">31</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">32</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * the key in the resource bundle to u \
se, and the {@code ClassLoader} in which the resource bundle can be found, in the</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">32</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">33</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * assumption that when it comes to seriali \
zing this object, the calling code (e.g. HttpFrameworkServlet and the</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">33</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">34</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * Grizzly HandlerAdapter) is in a different&nbs \
p;classloader and so will not have direct access to the resource bundle.</td>
</tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">35</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * <p></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">36</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * A default value {@code Loc \
alizableString} can be provided so that if the key is not found in the bundle, another</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">37</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * value can be specified, wh \
ich could be either another bundle reference, or a plain value.</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">38</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * </p></td> </tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">34</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">39</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> */</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">35</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">40</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">public class LocalizableString {</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">36</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">41</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">42</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">47</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> private final ClassLoader loader;</td> \
</tr> <tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">43</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">48</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> private final String value;</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">44</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">49</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> private final URI resource;</td> </tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">50</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> private final LocalizableString defaultValue;</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">45</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">51</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">46</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">52</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> /**</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">47</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">53</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * String only constructor for non-localizable {@code String} values.</td>
</tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">57</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">63</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @param loader the {@code C \
lassLoader} where the string definition should be obtained</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">58</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">64</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> */</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">59</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">65</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public LocalizableString(String value, ClassLoader loader) {</td>
</tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">66</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> this(value, loader, null);</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">67</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">68</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">69</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> /**</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">70</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * Constructor for potentially loc \
alizable {@code String}. If a default value is not specified, if the {@code key}</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">71</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * is a valid URI, its f \
ragment will be used, and otherwise the whole {@code key} value will be used.</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">72</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @param key the localizable key</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">73</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @param loader the {@code C \
lassLoader} where the string definition should be obtained</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">74</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @param defaultValue the default value to use if not localizable.</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">75</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> */</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">76</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public LocalizableString(String key, ClassLoader loader, LocalizableString defaultValue) {</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">60</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">77</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> this.loader = loader;</td>
</tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">61</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> this.value = value;</td> \
</tr> </tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">78</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> this.value = key;</td> \
</tr> <tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">79</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> this.defaultValue = defaultValue;</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">62</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">80</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">63</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">81</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> URI resource = null;</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">64</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">82</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> if (value != null&nb \
sp;&& value.startsWith(TRANSLATION_KEY_PREFIX) && loader != null) {</td>
</tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">84</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">102</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">   \
; return locales.getBundleInPreferredLocale(resource.getSchemeSpecificPart(), loader)</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">85</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">103</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">   \
; .getString(resource.getFragment());</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">86</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">104</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> } catch (MissingResourceException e) {</td>
</tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">87</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">   \
; // the bundle wasn't found, so we return the fragment</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">88</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return resource.getFragment();</td>
</tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">105</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">   \
; // the bundle wasn't found, so we use& \
nbsp;the default value, or return the fragment</td> \
</tr> <tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">106</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">   \
; return defaultValue == null ? resource.getFragment() : defaultValue.toTranslatedString(locales);</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">89</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">107</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> \
</tr> <tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">90</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">108</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">91</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">109</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">95</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">113</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> * @return the untranslated string value</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">96</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">114</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> */</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">97</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">115</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public String toString() {</td> </tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">98</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return this.value;</td> </tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">116</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return defaultValue ==&nb \
sp;null ? value : "[" + value + "], default [" + defaultValue + "]";</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">99</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">117</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">100</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">118</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">101</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">119</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> /**</td> </tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">114</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">132</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">115</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">133</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString that = (LocalizableString) o;</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">116</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">134</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">117</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return value.equals(that.value);</td>
</tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">135</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return value.equals(that.value \
) && Objects.equals(defaultValue, that.defaultValue);</td> \
</tr> </tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">118</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">136</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">119</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">137</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">120</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">138</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">124</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">142</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> */</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">125</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">143</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> @Override</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">126</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">144</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public int hashCode() {</td> </tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">127</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return value.hashCode();</td> \
</tr> </tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">145</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> return Objects.hash(value, defaultValue);</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">128</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">146</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">129</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">147</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">}</td> </tr>
</tbody>
</table></td>
</tr>
<tr style="background: #ffffff; color: #333333">
<td style="font-size:13px;font-family:Arial;padding-top:2px;padding-right:10px;margin:0;; \
padding: 7px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid \
#cccccc" valign="top"><a style="text-decoration: none; color: #3c78b5; color: \
#3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/COMMONS/repos/forgerock-commons/browse?at=m \
aster">util/forgerock-util/src/tes...orgerock/util/i18n/LocalizableStringTest.java</a></td>
<td style="font-size:13px;font-family:Arial;padding-top:2px;text-align:right \
!important;margin:0;; padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc" nowrap valign="top"><a style="text-decoration: \
none; color: #3c78b5; color: #3b73af; text-decoration: none" \
href="https://stash.forgerock.org/projects/COMMONS/repos/forgerock-commons/commits/4d5 \
ac13db831b19f7be489280385ff3375edc89e#util/forgerock-util/src/test/java/org/forgerock/util/i18n/LocalizableStringTest.java">View \
changes</a></td> </tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">24</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">24</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">25</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">25</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">public class LocalizableStringTest {</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">26</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">26</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">27</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> private final ClassLoader classLoader = getClass().getClassLoader();</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">28</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">27</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">29</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> @Test</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">28</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">30</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public void testNormalStringIsNotTranslated() {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">29</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">31</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> PreferredLocales locales = new PreferredLocales();</td>
</tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">30</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name =& \
nbsp;new LocalizableString("locale", getClass().getClassLoader());</td> \
</tr> </tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">32</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name = new LocalizableString("locale", classLoader);</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">31</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">33</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> assertThat(name.toTranslatedString(locales)).isEqualTo("locale");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">32</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">34</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">33</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">35</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">34</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">36</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> @Test</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">35</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">37</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public void testLocalizableStringIsTranslated() {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">36</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">38</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> PreferredLocales locales = new PreferredLocales();</td>
</tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">37</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name =& \
nbsp;new LocalizableString("i18n:locales/bundle#locale", getClass().getClassLoader());</td>
</tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">39</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name =& \
nbsp;new LocalizableString("i18n:locales/bundle#locale", classLoader);</td> \
</tr> </tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">38</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">40</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> assertThat(name.toTranslatedString(locales)).isEqualTo("ROOT");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">39</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">41</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">40</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">42</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">48</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">50</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> @Test</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">49</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">51</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public void testLocalizableStringIsNotTranslatedIfUriIsInvalid() {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">50</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">52</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> PreferredLocales locales = new PreferredLocales();</td>
</tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">51</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name =& \
nbsp;new LocalizableString("i18n:nosuch$%^", getClass().getClassLoader());</td>
</tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">53</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name = new LocalizableString("i18n:nosuch$%^", classLoader);</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">52</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">54</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> assertThat(name.toTranslatedString(locales)).isEqualTo("i18n:nosuch$%^");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">53</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">55</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">54</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">56</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">55</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">57</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> @Test</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">56</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">58</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public void testLocalizableStringThrowsIfBundleIsInvalid() {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">57</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">59</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> PreferredLocales locales = new PreferredLocales();</td>
</tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">58</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name =& \
nbsp;new LocalizableString("i18n:foo#locale", getClass().getClassLoader());</td>
</tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">60</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name = new LocalizableString("i18n:foo#locale", classLoader);</td>
</tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">59</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">61</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> assertThat(name.toTranslatedString(locales)).isEqualTo("locale");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">60</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">62</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">61</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">63</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table></td>
</tr>
<tr class="diff-hunk" style="background: #ffffff; color: #333333">
<td colspan="2" style="padding: 7px 10px; text-align: left; vertical-align: top; \
border-bottom: 1px solid #cccccc"> <table class="segmentlines CONTEXT" style="width: \
100%"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">63</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">65</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public void testLocalizableStringIsTranslatedSpecifiedLocales() {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">64</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">66</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> PreferredLocales locales = new PreferredLocales(Arrays.asList(new Locale("fr")));</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">65</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">67</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
</tbody>
</table>
<table class="segmentlines REMOVED" style="border-top-color: #fee8e9; \
background-color: #fee8e9; width: 100%" bgcolor="#fee8e9"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">66</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em"></td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">-</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name =& \
nbsp;new LocalizableString("i18n:locales/bundle#locale", getClass().getClassLoader());</td>
</tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">68</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name =& \
nbsp;new LocalizableString("i18n:locales/bundle#locale", classLoader);</td> \
</tr> </tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">67</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">69</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> assertThat(name.toTranslatedString(locales)).isEqualTo("French");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">68</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">70</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
</tbody>
</table>
<table class="segmentlines ADDED" style="border-top-color: #ddffdd; background-color: \
#ddffdd; width: 100%" bgcolor="#ddffdd"> <tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">71</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"></td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">72</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> @Test</td> </tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">73</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> public void testLocalizableStringIsDefaultedWhenNoValue() {</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">74</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> PreferredLocales locales = new PreferredLocales(Arrays.asList(new Locale("fr")));</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">75</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> LocalizableString name =& \
nbsp;new LocalizableString("i18n:locales/bundle#novalue", classLoader,</td> \
</tr> <tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">76</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> new LocalizableString("Default"));</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">77</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> assertThat(name.toTranslatedString(locales)).isEqualTo("Default");</td>
</tr>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em"></td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">78</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em">+</td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0"> }</td> </tr>
</tbody>
</table>
<table class="segmentlines CONTEXT" style="width: 100%">
<tbody>
<tr>
<td class="line number" style="font-family: monospace, 'Courier New', Courier; \
font-size: 12px; margin: 0; width: 2em">69</td> <td class="line number" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: 0; \
width: 2em">79</td> <td class="line marker" style="font-family: monospace, 'Courier \
New', Courier; font-size: 12px; margin: 0; width: 1em"></td> <td class="line" \
style="font-family: monospace, 'Courier New', Courier; font-size: 12px; margin: \
0">}</td> </tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
<table width="100%" class="fullwidth">
<tbody>
<tr>
<td class="chrome-cell footer" bgcolor="#f5f5f5" style="border-top: 1px solid \
#cccccc; padding-left: 20px; height: 20px; padding-top: 10px; padding-bottom: 10px; \
font-size: 12px; color: #707070; background-color: #f5f5f5; background-position: \
right 10px center; background-repeat: no-repeat; background-image: \
url(https://stash.forgerock.org/s/en_US/3619e0d/641/3.2.2/_/download/resources/nl.stefankohler.stash.stash-notification-plugin:email-resources/logo-email-footer.png)" \
height="20"><strong>Hint:</strong> You received this notification because you're \
watching <a href="https://stash.forgerock.org/projects/COMMONS/repos/forgerock-commons/browse" \
style="color: #3b73af; text-decoration: none">forgerock-commons</a></td> </tr>
</tbody>
</table>
<table width="100%" style="width:100%;min-width:100%" cellpadding="0" \
cellspacing="0"> <tbody>
<tr>
<td style="font-size: 11px;font-family:Arial;color: #666; text-align: center; \
padding-top: 5px">Sent by <a \
href="https://marketplace.atlassian.com/plugins/nl.stefankohler.stash.stash-notification-plugin" \
style="text-decoration: none; color: #666; color: #3b73af; text-decoration: \
none">Notifyr for Bitbucket Server</a>, the <a \
href="http://www.atlassian.com/software/bitbucket/" style="text-decoration: none; \
color: #666; color: #3b73af; text-decoration: none">Git repository management for \
enterprise teams</a></td> </tr>
</tbody>
</table>
</body>
</html>
_______________________________________________
Commons mailing list
Commons@forgerock.org
https://lists.forgerock.org/mailman/listinfo/commons
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic