WebColors.java

1
/*
2
 * $Id: WebColors.java 4065 2009-09-16 23:09:11Z psoares33 $
3
 *
4
 * Copyright 2001, 2002 by Bruno Lowagie.
5
 *
6
 * The contents of this file are subject to the Mozilla Public License Version 1.1
7
 * (the "License"); you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at http://www.mozilla.org/MPL/
9
 *
10
 * Software distributed under the License is distributed on an "AS IS" basis,
11
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12
 * for the specific language governing rights and limitations under the License.
13
 *
14
 * The Original Code is 'iText, a free JAVA-PDF library'.
15
 *
16
 * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by
17
 * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie.
18
 * All Rights Reserved.
19
 * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer
20
 * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved.
21
 *
22
 * Contributor(s): all the names of the contributors are added in the source code
23
 * where applicable.
24
 *
25
 * Alternatively, the contents of this file may be used under the terms of the
26
 * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the
27
 * provisions of LGPL are applicable instead of those above.  If you wish to
28
 * allow use of your version of this file only under the terms of the LGPL
29
 * License and not to allow others to use your version of this file under
30
 * the MPL, indicate your decision by deleting the provisions above and
31
 * replace them with the notice and other provisions required by the LGPL.
32
 * If you do not delete the provisions above, a recipient may use your version
33
 * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE.
34
 *
35
 * This library is free software; you can redistribute it and/or modify it
36
 * under the terms of the MPL as stated above or under the terms of the GNU
37
 * Library General Public License as published by the Free Software Foundation;
38
 * either version 2 of the License, or any later version.
39
 *
40
 * This library is distributed in the hope that it will be useful, but WITHOUT
41
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
42
 * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more
43
 * details.
44
 *
45
 * If you didn't download this code from the following link, you should check if
46
 * you aren't using an obsolete version:
47
 * http://www.lowagie.com/iText/
48
 */
49
50
package com.lowagie.text.html;
51
52
import java.awt.Color;
53
import java.util.HashMap;
54
import java.util.Locale;
55
import java.util.StringTokenizer;
56
import com.lowagie.text.error_messages.MessageLocalization;
57
58
/**
59
 * This class is a HashMap that contains the names of colors as a key and the
60
 * corresponding Color as value. (Source: Wikipedia
61
 * http://en.wikipedia.org/wiki/Web_colors )
62
 * 
63
 * @author blowagie
64
 */
65
public class WebColors extends HashMap {
66
    
67
    private static final long serialVersionUID = 3542523100813372896L;
68
    /** HashMap containing all the names and corresponding color values. */
69
    public static final WebColors NAMES = new WebColors();
70
    static {
71
        NAMES.put("aliceblue", new int[] { 0xf0, 0xf8, 0xff, 0x00 });
72
        NAMES.put("antiquewhite", new int[] { 0xfa, 0xeb, 0xd7, 0x00 });
73
        NAMES.put("aqua", new int[] { 0x00, 0xff, 0xff, 0x00 });
74
        NAMES.put("aquamarine", new int[] { 0x7f, 0xff, 0xd4, 0x00 });
75
        NAMES.put("azure", new int[] { 0xf0, 0xff, 0xff, 0x00 });
76
        NAMES.put("beige", new int[] { 0xf5, 0xf5, 0xdc, 0x00 });
77
        NAMES.put("bisque", new int[] { 0xff, 0xe4, 0xc4, 0x00 });
78
        NAMES.put("black", new int[] { 0x00, 0x00, 0x00, 0x00 });
79
        NAMES.put("blanchedalmond", new int[] { 0xff, 0xeb, 0xcd, 0x00 });
80
        NAMES.put("blue", new int[] { 0x00, 0x00, 0xff, 0x00 });
81
        NAMES.put("blueviolet", new int[] { 0x8a, 0x2b, 0xe2, 0x00 });
82
        NAMES.put("brown", new int[] { 0xa5, 0x2a, 0x2a, 0x00 });
83
        NAMES.put("burlywood", new int[] { 0xde, 0xb8, 0x87, 0x00 });
84
        NAMES.put("cadetblue", new int[] { 0x5f, 0x9e, 0xa0, 0x00 });
85
        NAMES.put("chartreuse", new int[] { 0x7f, 0xff, 0x00, 0x00 });
86
        NAMES.put("chocolate", new int[] { 0xd2, 0x69, 0x1e, 0x00 });
87
        NAMES.put("coral", new int[] { 0xff, 0x7f, 0x50, 0x00 });
88
        NAMES.put("cornflowerblue", new int[] { 0x64, 0x95, 0xed, 0x00 });
89
        NAMES.put("cornsilk", new int[] { 0xff, 0xf8, 0xdc, 0x00 });
90
        NAMES.put("crimson", new int[] { 0xdc, 0x14, 0x3c, 0x00 });
91
        NAMES.put("cyan", new int[] { 0x00, 0xff, 0xff, 0x00 });
92
        NAMES.put("darkblue", new int[] { 0x00, 0x00, 0x8b, 0x00 });
93
        NAMES.put("darkcyan", new int[] { 0x00, 0x8b, 0x8b, 0x00 });
94
        NAMES.put("darkgoldenrod", new int[] { 0xb8, 0x86, 0x0b, 0x00 });
95
        NAMES.put("darkgray", new int[] { 0xa9, 0xa9, 0xa9, 0x00 });
96
        NAMES.put("darkgreen", new int[] { 0x00, 0x64, 0x00, 0x00 });
97
        NAMES.put("darkkhaki", new int[] { 0xbd, 0xb7, 0x6b, 0x00 });
98
        NAMES.put("darkmagenta", new int[] { 0x8b, 0x00, 0x8b, 0x00 });
99
        NAMES.put("darkolivegreen", new int[] { 0x55, 0x6b, 0x2f, 0x00 });
100
        NAMES.put("darkorange", new int[] { 0xff, 0x8c, 0x00, 0x00 });
101
        NAMES.put("darkorchid", new int[] { 0x99, 0x32, 0xcc, 0x00 });
102
        NAMES.put("darkred", new int[] { 0x8b, 0x00, 0x00, 0x00 });
103
        NAMES.put("darksalmon", new int[] { 0xe9, 0x96, 0x7a, 0x00 });
104
        NAMES.put("darkseagreen", new int[] { 0x8f, 0xbc, 0x8f, 0x00 });
105
        NAMES.put("darkslateblue", new int[] { 0x48, 0x3d, 0x8b, 0x00 });
106
        NAMES.put("darkslategray", new int[] { 0x2f, 0x4f, 0x4f, 0x00 });
107
        NAMES.put("darkturquoise", new int[] { 0x00, 0xce, 0xd1, 0x00 });
108
        NAMES.put("darkviolet", new int[] { 0x94, 0x00, 0xd3, 0x00 });
109
        NAMES.put("deeppink", new int[] { 0xff, 0x14, 0x93, 0x00 });
110
        NAMES.put("deepskyblue", new int[] { 0x00, 0xbf, 0xff, 0x00 });
111
        NAMES.put("dimgray", new int[] { 0x69, 0x69, 0x69, 0x00 });
112
        NAMES.put("dodgerblue", new int[] { 0x1e, 0x90, 0xff, 0x00 });
113
        NAMES.put("firebrick", new int[] { 0xb2, 0x22, 0x22, 0x00 });
114
        NAMES.put("floralwhite", new int[] { 0xff, 0xfa, 0xf0, 0x00 });
115
        NAMES.put("forestgreen", new int[] { 0x22, 0x8b, 0x22, 0x00 });
116
        NAMES.put("fuchsia", new int[] { 0xff, 0x00, 0xff, 0x00 });
117
        NAMES.put("gainsboro", new int[] { 0xdc, 0xdc, 0xdc, 0x00 });
118
        NAMES.put("ghostwhite", new int[] { 0xf8, 0xf8, 0xff, 0x00 });
119
        NAMES.put("gold", new int[] { 0xff, 0xd7, 0x00, 0x00 });
120
        NAMES.put("goldenrod", new int[] { 0xda, 0xa5, 0x20, 0x00 });
121
        NAMES.put("gray", new int[] { 0x80, 0x80, 0x80, 0x00 });
122
        NAMES.put("green", new int[] { 0x00, 0x80, 0x00, 0x00 });
123
        NAMES.put("greenyellow", new int[] { 0xad, 0xff, 0x2f, 0x00 });
124
        NAMES.put("honeydew", new int[] { 0xf0, 0xff, 0xf0, 0x00 });
125
        NAMES.put("hotpink", new int[] { 0xff, 0x69, 0xb4, 0x00 });
126
        NAMES.put("indianred", new int[] { 0xcd, 0x5c, 0x5c, 0x00 });
127
        NAMES.put("indigo", new int[] { 0x4b, 0x00, 0x82, 0x00 });
128
        NAMES.put("ivory", new int[] { 0xff, 0xff, 0xf0, 0x00 });
129
        NAMES.put("khaki", new int[] { 0xf0, 0xe6, 0x8c, 0x00 });
130
        NAMES.put("lavender", new int[] { 0xe6, 0xe6, 0xfa, 0x00 });
131
        NAMES.put("lavenderblush", new int[] { 0xff, 0xf0, 0xf5, 0x00 });
132
        NAMES.put("lawngreen", new int[] { 0x7c, 0xfc, 0x00, 0x00 });
133
        NAMES.put("lemonchiffon", new int[] { 0xff, 0xfa, 0xcd, 0x00 });
134
        NAMES.put("lightblue", new int[] { 0xad, 0xd8, 0xe6, 0x00 });
135
        NAMES.put("lightcoral", new int[] { 0xf0, 0x80, 0x80, 0x00 });
136
        NAMES.put("lightcyan", new int[] { 0xe0, 0xff, 0xff, 0x00 });
137
        NAMES.put("lightgoldenrodyellow", new int[] { 0xfa, 0xfa, 0xd2, 0x00 });
138
        NAMES.put("lightgreen", new int[] { 0x90, 0xee, 0x90, 0x00 });
139
        NAMES.put("lightgrey", new int[] { 0xd3, 0xd3, 0xd3, 0x00 });
140
        NAMES.put("lightpink", new int[] { 0xff, 0xb6, 0xc1, 0x00 });
141
        NAMES.put("lightsalmon", new int[] { 0xff, 0xa0, 0x7a, 0x00 });
142
        NAMES.put("lightseagreen", new int[] { 0x20, 0xb2, 0xaa, 0x00 });
143
        NAMES.put("lightskyblue", new int[] { 0x87, 0xce, 0xfa, 0x00 });
144
        NAMES.put("lightslategray", new int[] { 0x77, 0x88, 0x99, 0x00 });
145
        NAMES.put("lightsteelblue", new int[] { 0xb0, 0xc4, 0xde, 0x00 });
146
        NAMES.put("lightyellow", new int[] { 0xff, 0xff, 0xe0, 0x00 });
147
        NAMES.put("lime", new int[] { 0x00, 0xff, 0x00, 0x00 });
148
        NAMES.put("limegreen", new int[] { 0x32, 0xcd, 0x32, 0x00 });
149
        NAMES.put("linen", new int[] { 0xfa, 0xf0, 0xe6, 0x00 });
150
        NAMES.put("magenta", new int[] { 0xff, 0x00, 0xff, 0x00 });
151
        NAMES.put("maroon", new int[] { 0x80, 0x00, 0x00, 0x00 });
152
        NAMES.put("mediumaquamarine", new int[] { 0x66, 0xcd, 0xaa, 0x00 });
153
        NAMES.put("mediumblue", new int[] { 0x00, 0x00, 0xcd, 0x00 });
154
        NAMES.put("mediumorchid", new int[] { 0xba, 0x55, 0xd3, 0x00 });
155
        NAMES.put("mediumpurple", new int[] { 0x93, 0x70, 0xdb, 0x00 });
156
        NAMES.put("mediumseagreen", new int[] { 0x3c, 0xb3, 0x71, 0x00 });
157
        NAMES.put("mediumslateblue", new int[] { 0x7b, 0x68, 0xee, 0x00 });
158
        NAMES.put("mediumspringgreen", new int[] { 0x00, 0xfa, 0x9a, 0x00 });
159
        NAMES.put("mediumturquoise", new int[] { 0x48, 0xd1, 0xcc, 0x00 });
160
        NAMES.put("mediumvioletred", new int[] { 0xc7, 0x15, 0x85, 0x00 });
161
        NAMES.put("midnightblue", new int[] { 0x19, 0x19, 0x70, 0x00 });
162
        NAMES.put("mintcream", new int[] { 0xf5, 0xff, 0xfa, 0x00 });
163
        NAMES.put("mistyrose", new int[] { 0xff, 0xe4, 0xe1, 0x00 });
164
        NAMES.put("moccasin", new int[] { 0xff, 0xe4, 0xb5, 0x00 });
165
        NAMES.put("navajowhite", new int[] { 0xff, 0xde, 0xad, 0x00 });
166
        NAMES.put("navy", new int[] { 0x00, 0x00, 0x80, 0x00 });
167
        NAMES.put("oldlace", new int[] { 0xfd, 0xf5, 0xe6, 0x00 });
168
        NAMES.put("olive", new int[] { 0x80, 0x80, 0x00, 0x00 });
169
        NAMES.put("olivedrab", new int[] { 0x6b, 0x8e, 0x23, 0x00 });
170
        NAMES.put("orange", new int[] { 0xff, 0xa5, 0x00, 0x00 });
171
        NAMES.put("orangered", new int[] { 0xff, 0x45, 0x00, 0x00 });
172
        NAMES.put("orchid", new int[] { 0xda, 0x70, 0xd6, 0x00 });
173
        NAMES.put("palegoldenrod", new int[] { 0xee, 0xe8, 0xaa, 0x00 });
174
        NAMES.put("palegreen", new int[] { 0x98, 0xfb, 0x98, 0x00 });
175
        NAMES.put("paleturquoise", new int[] { 0xaf, 0xee, 0xee, 0x00 });
176
        NAMES.put("palevioletred", new int[] { 0xdb, 0x70, 0x93, 0x00 });
177
        NAMES.put("papayawhip", new int[] { 0xff, 0xef, 0xd5, 0x00 });
178
        NAMES.put("peachpuff", new int[] { 0xff, 0xda, 0xb9, 0x00 });
179
        NAMES.put("peru", new int[] { 0xcd, 0x85, 0x3f, 0x00 });
180
        NAMES.put("pink", new int[] { 0xff, 0xc0, 0xcb, 0x00 });
181
        NAMES.put("plum", new int[] { 0xdd, 0xa0, 0xdd, 0x00 });
182
        NAMES.put("powderblue", new int[] { 0xb0, 0xe0, 0xe6, 0x00 });
183
        NAMES.put("purple", new int[] { 0x80, 0x00, 0x80, 0x00 });
184
        NAMES.put("red", new int[] { 0xff, 0x00, 0x00, 0x00 });
185
        NAMES.put("rosybrown", new int[] { 0xbc, 0x8f, 0x8f, 0x00 });
186
        NAMES.put("royalblue", new int[] { 0x41, 0x69, 0xe1, 0x00 });
187
        NAMES.put("saddlebrown", new int[] { 0x8b, 0x45, 0x13, 0x00 });
188
        NAMES.put("salmon", new int[] { 0xfa, 0x80, 0x72, 0x00 });
189
        NAMES.put("sandybrown", new int[] { 0xf4, 0xa4, 0x60, 0x00 });
190
        NAMES.put("seagreen", new int[] { 0x2e, 0x8b, 0x57, 0x00 });
191
        NAMES.put("seashell", new int[] { 0xff, 0xf5, 0xee, 0x00 });
192
        NAMES.put("sienna", new int[] { 0xa0, 0x52, 0x2d, 0x00 });
193
        NAMES.put("silver", new int[] { 0xc0, 0xc0, 0xc0, 0x00 });
194
        NAMES.put("skyblue", new int[] { 0x87, 0xce, 0xeb, 0x00 });
195
        NAMES.put("slateblue", new int[] { 0x6a, 0x5a, 0xcd, 0x00 });
196
        NAMES.put("slategray", new int[] { 0x70, 0x80, 0x90, 0x00 });
197
        NAMES.put("snow", new int[] { 0xff, 0xfa, 0xfa, 0x00 });
198
        NAMES.put("springgreen", new int[] { 0x00, 0xff, 0x7f, 0x00 });
199
        NAMES.put("steelblue", new int[] { 0x46, 0x82, 0xb4, 0x00 });
200
        NAMES.put("tan", new int[] { 0xd2, 0xb4, 0x8c, 0x00 });
201
        NAMES.put("transparent", new int[] { 0x00, 0x00, 0x00, 0xff });
202
        NAMES.put("teal", new int[] { 0x00, 0x80, 0x80, 0x00 });
203
        NAMES.put("thistle", new int[] { 0xd8, 0xbf, 0xd8, 0x00 });
204
        NAMES.put("tomato", new int[] { 0xff, 0x63, 0x47, 0x00 });
205
        NAMES.put("turquoise", new int[] { 0x40, 0xe0, 0xd0, 0x00 });
206
        NAMES.put("violet", new int[] { 0xee, 0x82, 0xee, 0x00 });
207
        NAMES.put("wheat", new int[] { 0xf5, 0xde, 0xb3, 0x00 });
208
        NAMES.put("white", new int[] { 0xff, 0xff, 0xff, 0x00 });
209
        NAMES.put("whitesmoke", new int[] { 0xf5, 0xf5, 0xf5, 0x00 });
210
        NAMES.put("yellow", new int[] { 0xff, 0xff, 0x00, 0x00 });
211
        NAMES.put("yellowgreen", new int[] { 0x9, 0xacd, 0x32, 0x00 });
212
    }
213
214
    /**
215
     * Gives you a Color based on a name.
216
     * 
217
     * @param name
218
     *            a name such as black, violet, cornflowerblue or #RGB or #RRGGBB
219
     *            or rgb(R,G,B)
220
     * @return the corresponding Color object
221
     * @throws IllegalArgumentException
222
     *             if the String isn't a know representation of a color.
223
     */
224
    public static Color getRGBColor(String name)
225
            throws IllegalArgumentException {
226
        int[] c = { 0, 0, 0, 0 };
227 1 1. getRGBColor : negated conditional → NO_COVERAGE
        if (name.startsWith("#")) {
228 1 1. getRGBColor : negated conditional → NO_COVERAGE
            if (name.length() == 4) {
229 1 1. getRGBColor : Replaced integer multiplication with division → NO_COVERAGE
                c[0] = Integer.parseInt(name.substring(1, 2), 16) * 16;
230 1 1. getRGBColor : Replaced integer multiplication with division → NO_COVERAGE
                c[1] = Integer.parseInt(name.substring(2, 3), 16) * 16;
231 1 1. getRGBColor : Replaced integer multiplication with division → NO_COVERAGE
                c[2] = Integer.parseInt(name.substring(3), 16) * 16;
232 1 1. getRGBColor : mutated return of Object value for com/lowagie/text/html/WebColors::getRGBColor to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
                return new Color(c[0], c[1], c[2], c[3]);
233
            }
234 1 1. getRGBColor : negated conditional → NO_COVERAGE
            if (name.length() == 7) {
235
                c[0] = Integer.parseInt(name.substring(1, 3), 16);
236
                c[1] = Integer.parseInt(name.substring(3, 5), 16);
237
                c[2] = Integer.parseInt(name.substring(5), 16);
238 1 1. getRGBColor : mutated return of Object value for com/lowagie/text/html/WebColors::getRGBColor to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
                return new Color(c[0], c[1], c[2], c[3]);
239
            }
240
            throw new IllegalArgumentException(MessageLocalization.getComposedMessage("unknown.color.format.must.be.rgb.or.rrggbb"));
241
        }
242 1 1. getRGBColor : negated conditional → NO_COVERAGE
        else if (name.startsWith("rgb(")) {
243
            StringTokenizer tok = new StringTokenizer(name, "rgb(), \t\r\n\f");
244 3 1. getRGBColor : changed conditional boundary → NO_COVERAGE
2. getRGBColor : Changed increment from 1 to -1 → NO_COVERAGE
3. getRGBColor : negated conditional → NO_COVERAGE
            for (int k = 0; k < 3; ++k) {
245
                String v = tok.nextToken();
246 1 1. getRGBColor : negated conditional → NO_COVERAGE
                if (v.endsWith("%"))
247 3 1. getRGBColor : Replaced integer subtraction with addition → NO_COVERAGE
2. getRGBColor : Replaced integer multiplication with division → NO_COVERAGE
3. getRGBColor : Replaced integer division with multiplication → NO_COVERAGE
                    c[k] = Integer.parseInt(v.substring(0, v.length() - 1)) * 255 / 100;
248
                else
249
                    c[k] = Integer.parseInt(v);
250 2 1. getRGBColor : changed conditional boundary → NO_COVERAGE
2. getRGBColor : negated conditional → NO_COVERAGE
                if (c[k] < 0)
251
                    c[k] = 0;
252 2 1. getRGBColor : changed conditional boundary → NO_COVERAGE
2. getRGBColor : negated conditional → NO_COVERAGE
                else if (c[k] > 255)
253
                    c[k] = 255;
254
            }
255 1 1. getRGBColor : mutated return of Object value for com/lowagie/text/html/WebColors::getRGBColor to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
            return new Color(c[0], c[1], c[2], c[3]);
256
        }
257
        name = name.toLowerCase(Locale.ROOT);
258 1 1. getRGBColor : negated conditional → NO_COVERAGE
        if (!NAMES.containsKey(name))
259
            throw new IllegalArgumentException("Color '" + name
260
                    + "' not found.");
261
        c = (int[]) NAMES.get(name);
262 1 1. getRGBColor : mutated return of Object value for com/lowagie/text/html/WebColors::getRGBColor to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE
        return new Color(c[0], c[1], c[2], c[3]);
263
    }
264
}

Mutations

227

1.1
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

228

1.1
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

229

1.1
Location : getRGBColor
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

230

1.1
Location : getRGBColor
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

231

1.1
Location : getRGBColor
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

232

1.1
Location : getRGBColor
Killed by : none
mutated return of Object value for com/lowagie/text/html/WebColors::getRGBColor to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

234

1.1
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

238

1.1
Location : getRGBColor
Killed by : none
mutated return of Object value for com/lowagie/text/html/WebColors::getRGBColor to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

242

1.1
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

244

1.1
Location : getRGBColor
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : getRGBColor
Killed by : none
Changed increment from 1 to -1 → NO_COVERAGE

3.3
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

246

1.1
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

247

1.1
Location : getRGBColor
Killed by : none
Replaced integer subtraction with addition → NO_COVERAGE

2.2
Location : getRGBColor
Killed by : none
Replaced integer multiplication with division → NO_COVERAGE

3.3
Location : getRGBColor
Killed by : none
Replaced integer division with multiplication → NO_COVERAGE

250

1.1
Location : getRGBColor
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

252

1.1
Location : getRGBColor
Killed by : none
changed conditional boundary → NO_COVERAGE

2.2
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

255

1.1
Location : getRGBColor
Killed by : none
mutated return of Object value for com/lowagie/text/html/WebColors::getRGBColor to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

258

1.1
Location : getRGBColor
Killed by : none
negated conditional → NO_COVERAGE

262

1.1
Location : getRGBColor
Killed by : none
mutated return of Object value for com/lowagie/text/html/WebColors::getRGBColor to ( if (x != null) null else throw new RuntimeException ) → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.4.2