auto import from //branches/cupcake/...@125939
This commit is contained in:
@@ -114,6 +114,7 @@ public class Errors
|
||||
public static Error CHANGED_NATIVE = new Error(22, HIDDEN);
|
||||
public static Error CHANGED_CLASS = new Error(23, WARNING);
|
||||
public static Error CHANGED_DEPRECATED = new Error(24, WARNING);
|
||||
public static Error CHANGED_SYNCHRONIZED = new Error(25, ERROR);
|
||||
|
||||
public static Error[] ERRORS = {
|
||||
PARSE_ERROR,
|
||||
@@ -140,6 +141,7 @@ public class Errors
|
||||
CHANGED_NATIVE,
|
||||
CHANGED_CLASS,
|
||||
CHANGED_DEPRECATED,
|
||||
CHANGED_SYNCHRONIZED,
|
||||
};
|
||||
|
||||
public static boolean setErrorLevel(int code, int level) {
|
||||
|
@@ -145,6 +145,12 @@ public class MethodInfo implements AbstractMethodInfo {
|
||||
consistent = false;
|
||||
}
|
||||
|
||||
if (mIsSynchronized != mInfo.mIsSynchronized) {
|
||||
Errors.error(Errors.CHANGED_SYNCHRONIZED, mInfo.position(),
|
||||
"Method " + mInfo.qualifiedName() + " has changed 'synchronized' qualifier from " + mIsSynchronized + " to " + mInfo.mIsSynchronized);
|
||||
consistent = false;
|
||||
}
|
||||
|
||||
for (String exec : mExceptions) {
|
||||
if (!mInfo.mExceptions.contains(exec)) {
|
||||
// exclude 'throws' changes to finalize() overrides with no arguments
|
||||
|
@@ -1,5 +1,7 @@
|
||||
#include "files.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
@@ -288,50 +288,54 @@ hr.blue {
|
||||
|
||||
/* main */
|
||||
|
||||
#mainBodyFluid {
|
||||
margin: 20px 10px;
|
||||
color:#333;
|
||||
}
|
||||
|
||||
#mainBodyFixed {
|
||||
margin: 20px auto;
|
||||
margin: 20px 10px;
|
||||
color: #333;
|
||||
width:920px;
|
||||
}
|
||||
|
||||
#mainBodyFixed h3 {
|
||||
#mainBodyFixed h3,
|
||||
#mainBodyFluid h3 {
|
||||
color:#336666;
|
||||
font-size:1.25em;
|
||||
margin: 0em 0em 0em 0em;
|
||||
padding-bottom:.5em;
|
||||
}
|
||||
|
||||
#mainBodyFixed h2 {
|
||||
#mainBodyFixed h2,
|
||||
#mainBodyFluid h2 {
|
||||
color:#336666;
|
||||
font-size:1.25em;
|
||||
margin: 0;
|
||||
padding-bottom:.5em;
|
||||
}
|
||||
|
||||
#mainBodyFixed h1 {
|
||||
#mainBodyFixed h1,
|
||||
#mainBodyFluid h1 {
|
||||
color:#435A6E;
|
||||
font-size:1.7em;
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
#mainBodyFixed .green,
|
||||
#mainBodyFluid .green,
|
||||
#jd-content .green {
|
||||
color:#7BB026;
|
||||
background-color:none;
|
||||
}
|
||||
|
||||
#mainBodyFixed a {
|
||||
#mainBodyFixed a,
|
||||
#mainBodyFluid a {
|
||||
color: #006699;
|
||||
font-size: 13px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#mainBodyFixed a.orangeLink {
|
||||
color: #ff6600;
|
||||
font-size: 13px;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
#mainBodyLeft {
|
||||
float: left;
|
||||
width: 600px;
|
||||
|
Reference in New Issue
Block a user