src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java

changeset 1570
f91144b7da75
parent 1521
71f35e4b93a5
child 1596
3a39d123d33a
equal deleted inserted replaced
1569:475eb15dfdad 1570:f91144b7da75
1 /* 1 /*
2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
386 this.lintCategory = lc; 386 this.lintCategory = lc;
387 this.flags = flags; 387 this.flags = flags;
388 this.source = source; 388 this.source = source;
389 this.position = pos; 389 this.position = pos;
390 this.key = key; 390 this.key = key;
391 this.args = args; 391 this.args = args;
392 392
393 int n = (pos == null ? Position.NOPOS : pos.getPreferredPosition()); 393 int n = (pos == null ? Position.NOPOS : pos.getPreferredPosition());
394 if (n == Position.NOPOS || source == null) 394 if (n == Position.NOPOS || source == null)
395 line = column = -1; 395 line = column = -1;
396 else { 396 else {

mercurial