This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 268783
Collapse All | Expand All

(-)a/truffle/com.oracle.truffle.api/src/META-INF/upgrade/nolamdas.hint (+3 lines)
Lines 1-6 Link Here
1
'Avoid use of lamdas in Truffle API':
1
'Avoid use of lamdas in Truffle API':
2
($args$) -> $any :: inTruffleButNotInTest()
2
($args$) -> $any :: inTruffleButNotInTest()
3
;;
3
;;
4
'Avoid use of method literals in Truffle API':
5
$clazz \u003a\003a $member :: inTruffleButNotInTest()
6
;;
4
7
5
<?
8
<?
6
private boolean inTruffleButNotInTest() {
9
private boolean inTruffleButNotInTest() {
(-)a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java (+6 lines)
Lines 36-41 import com.oracle.truffle.api.nodes.NodeInfo; Link Here
36
 * @since 0.8 or earlier
36
 * @since 0.8 or earlier
37
 */
37
 */
38
public final class TruffleOptions {
38
public final class TruffleOptions {
39
    public final Runnable r = String::new;
40
    public final Runnable rr = TruffleOptions::noop;
41
42
    static void noop() {
43
    }
44
39
    private TruffleOptions() {
45
    private TruffleOptions() {
40
    }
46
    }
41
47
(-)a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLException.java (+7 lines)
Lines 62-67 public class SLException extends RuntimeException { Link Here
62
62
63
    private static final long serialVersionUID = -6799734410727348507L;
63
    private static final long serialVersionUID = -6799734410727348507L;
64
64
65
    public final Runnable r = () -> {};
66
67
    public final Runnable rn = String::new;
68
    public final Runnable rr = SLException::noop;
69
70
    static void noop() {
71
    }
65
    public SLException(String message) {
72
    public SLException(String message) {
66
        super(message);
73
        super(message);
67
        CompilerAsserts.neverPartOfCompilation();
74
        CompilerAsserts.neverPartOfCompilation();

Return to bug 268783