Examples of Lint


Examples of com.sun.tools.javac.code.Lint

/* *************************************************************************
* Errors and Warnings
**************************************************************************/

    Lint setLint(Lint newLint) {
        Lint prev = lint;
        lint = newLint;
        return prev;
    }
View Full Code Here

Examples of com.sun.tools.javac.code.Lint

            lintEnv = lintEnv.next;

        // Having found the enclosing lint value, we can initialize the lint value for this class
        env.info.lint = lintEnv.info.lint.augment(env.info.enclVar.attributes_field, env.info.enclVar.flags());

        Lint prevLint = chk.setLint(env.info.lint);
        JavaFileObject prevSource = log.useSource(env.toplevel.sourcefile);

        try {
            Type itype = attribExpr(initializer, env, type);
            if (itype.constValue() != null)
View Full Code Here

Examples of com.sun.tools.javac.code.Lint

    }

    public void visitMethodDef(JCMethodDecl tree) {
        MethodSymbol m = tree.sym;

        Lint lint = env.info.lint.augment(m.attributes_field, m.flags());
        Lint prevLint = chk.setLint(lint);
        MethodSymbol prevMethod = chk.setMethod(m);
        try {
            deferredLintHandler.flush(tree.pos());
            chk.checkDeprecatedAnnotation(tree.pos(), m);
View Full Code Here

Examples of com.sun.tools.javac.code.Lint

            }
            tree.sym.flags_field |= EFFECTIVELY_FINAL;
        }

        VarSymbol v = tree.sym;
        Lint lint = env.info.lint.augment(v.attributes_field, v.flags());
        Lint prevLint = chk.setLint(lint);

        // Check that the variable's declared type is well-formed.
        chk.validate(tree.vartype, env);
        deferredLintHandler.flush(tree.pos());
View Full Code Here

Examples of com.sun.tools.javac.code.Lint

        while (lintEnv.info.lint == null)
            lintEnv = lintEnv.next;

        // Having found the enclosing lint value, we can initialize the lint value for this let
        localEnv.info.lint = lintEnv.info.lint;
        Lint prevLint = chk.setLint(env.info.lint);
       
        try{
            // visit each var def in this new env (side note: this is not a real LET since in theory each
            // new variable should see the ones defined previously)
            // do statements if we have any
View Full Code Here

Examples of com.sun.tools.javac.code.Lint

                lintEnv = lintEnv.next;

            // Having found the enclosing lint value, we can initialize the lint value for this class
            env.info.lint = lintEnv.info.lint.augment(c.attributes_field, c.flags());

            Lint prevLint = chk.setLint(env.info.lint);
            JavaFileObject prev = log.useSource(c.sourcefile);

            try {
                // java.lang.Enum may not be subclassed by a non-enum
                if (st.tsym == syms.enumSym &&
View Full Code Here

Examples of org.aspectj.weaver.Lint

      }
    }
  }

  protected void lint(String name, String[] infos) {
    Lint lint = bcelWorld.getLint();
    Kind kind = lint.getLintKind(name);
    kind.signal(infos, null, null);
  }
View Full Code Here

Examples of org.aspectj.weaver.Lint

    // TODO deal with injars, inpath, and aspectpath here...
  }

  private void setLintProperties(BcelWorld world, AjCompilerOptions options) {
    Properties p = new Properties();
    Lint lintSettings = world.getLint();
    Map map = options.getMap();
    p.put(lintSettings.invalidAbsoluteTypeName.getName(), map.get(AjCompilerOptions.OPTION_ReportInvalidAbsoluteTypeName));
    p.put(lintSettings.invalidWildcardTypeName.getName(), map.get(AjCompilerOptions.OPTION_ReportInvalidWildcardTypeName));
    p.put(lintSettings.unresolvableMember.getName(), map.get(AjCompilerOptions.OPTION_ReportUnresolvableMember));
    p.put(lintSettings.typeNotExposedToWeaver.getName(), map.get(AjCompilerOptions.OPTION_ReportTypeNotExposedToWeaver));
    p.put(lintSettings.shadowNotInStructure.getName(), map.get(AjCompilerOptions.OPTION_ReportShadowNotInStructure));
    p.put(lintSettings.unmatchedSuperTypeInCall.getName(), map.get(AjCompilerOptions.OPTION_ReportUnmatchedSuperTypeInCall));
    p.put(lintSettings.canNotImplementLazyTjp.getName(), map.get(AjCompilerOptions.OPTION_ReportCannotImplementLazyTJP));
    p.put(lintSettings.needsSerialVersionUIDField.getName(), map.get(AjCompilerOptions.OPTION_ReportNeedSerialVersionUIDField));
    p.put(lintSettings.serialVersionUIDBroken.getName(), map.get(AjCompilerOptions.OPTION_ReportIncompatibleSerialVersion));
    lintSettings.setFromProperties(p);
  }
View Full Code Here

Examples of org.aspectj.weaver.Lint

      }
    }
  }

  protected void lint(String name, String[] infos) {
    Lint lint = bcelWorld.getLint();
    Kind kind = lint.getLintKind(name);
    kind.signal(infos, null, null);
  }
View Full Code Here

Examples of org.aspectj.weaver.Lint

      }
    }
  }

  protected void lint(String name, String[] infos) {
    Lint lint = bcelWorld.getLint();
    Kind kind = lint.getLintKind(name);
    kind.signal(infos, null, null);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.