mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix typos in 'variable' and 'initial'
GitOrigin-RevId: a0ebc0930bea4dcfa9386adddee5e872e05c0a8e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cf87078331
commit
fb9a20325f
+3
-3
@@ -44,7 +44,7 @@ class c4 {
|
||||
k=0;
|
||||
}
|
||||
c4(int i) {
|
||||
if (false)
|
||||
if (false)
|
||||
<error descr="Variable 'k' might already have been assigned to">k</error> =1;
|
||||
}
|
||||
c4() {
|
||||
@@ -91,7 +91,7 @@ class c6 {
|
||||
|
||||
|
||||
|
||||
// multiple initalizers
|
||||
// multiple initializers
|
||||
class c7 {
|
||||
private final String x;
|
||||
{
|
||||
@@ -100,7 +100,7 @@ class c7 {
|
||||
|
||||
private final String y;
|
||||
{
|
||||
y = x;
|
||||
y = x;
|
||||
}
|
||||
|
||||
private static int i;
|
||||
|
||||
+11
-11
@@ -4,7 +4,7 @@ import java.io.*;
|
||||
class a {
|
||||
/**
|
||||
* javadoc should not be highlighted
|
||||
*/
|
||||
*/
|
||||
<error descr="Variable 'javaDoced' might not have been initialized">final int javaDoced</error>;
|
||||
|
||||
<error descr="Variable 'sfi1' might not have been initialized">static final int sfi1</error>;
|
||||
@@ -21,7 +21,7 @@ class a {
|
||||
|
||||
static final int csfi1 = 0;
|
||||
static final int csfi2 = csfi1 + 13 / 5;
|
||||
static final int csfi3;
|
||||
static final int csfi3;
|
||||
static {
|
||||
if (csfi1 < 13) {
|
||||
csfi3 = csfi2 + (csfi1 == 4 ? 5 : csfi2/13);
|
||||
@@ -37,9 +37,9 @@ class a {
|
||||
final int cifi2 = ff();
|
||||
final int cifi3;
|
||||
|
||||
int ff() {
|
||||
int ff() {
|
||||
int i = cifi1 + cifi2 + cifi3 + fi3 + fi4;
|
||||
return i;
|
||||
return i;
|
||||
}
|
||||
|
||||
{
|
||||
@@ -97,7 +97,7 @@ class Test {
|
||||
}
|
||||
}
|
||||
|
||||
// multiple initalizers
|
||||
// multiple initializers
|
||||
class c1 {
|
||||
private final String x;
|
||||
{
|
||||
@@ -106,7 +106,7 @@ class c1 {
|
||||
|
||||
private final String y;
|
||||
{
|
||||
y = x;
|
||||
y = x;
|
||||
}
|
||||
void f() {
|
||||
String s = x+y;
|
||||
@@ -114,7 +114,7 @@ class c1 {
|
||||
}
|
||||
|
||||
class c2 {
|
||||
static {
|
||||
static {
|
||||
}
|
||||
private static final int limit;
|
||||
static {
|
||||
@@ -202,7 +202,7 @@ class correct {
|
||||
o = new Object();
|
||||
new Object() {
|
||||
{ o.toString(); }
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,11 +228,11 @@ class Y {
|
||||
class IDEA100237 {
|
||||
static class Foo {
|
||||
final int bar;
|
||||
|
||||
|
||||
Foo() {
|
||||
bar = 1;
|
||||
}
|
||||
|
||||
|
||||
final Object baz = new Object() {
|
||||
final int qux = <error descr="Variable 'bar' might not have been initialized">bar</error>.hashCode() + 1;
|
||||
};
|
||||
@@ -382,4 +382,4 @@ class InsideAnAnonymousClass {
|
||||
_s = s;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+5
-5
@@ -1,4 +1,4 @@
|
||||
/// initalizers completion
|
||||
// initializers completion
|
||||
import java.io.*;
|
||||
|
||||
public class a {
|
||||
@@ -19,8 +19,8 @@ public class a {
|
||||
|
||||
}
|
||||
class a2 {
|
||||
{
|
||||
if (1==2) <error descr="Unhandled exception: java.io.IOException">throw new IOException();</error>
|
||||
{
|
||||
if (1==2) <error descr="Unhandled exception: java.io.IOException">throw new IOException();</error>
|
||||
}
|
||||
|
||||
<error descr="Unhandled exception: java.io.IOException">a2()</error> {}
|
||||
@@ -31,7 +31,7 @@ class ConnectException extends SocketException {
|
||||
}
|
||||
|
||||
class a3 {
|
||||
{
|
||||
{
|
||||
if (1==2) <error descr="Unhandled exception: SocketException">throw new SocketException();</error>
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ class H {
|
||||
}
|
||||
|
||||
static {
|
||||
if(true) {
|
||||
if(true) {
|
||||
<error descr="Unhandled exception: java.io.FileNotFoundException">throw new FileNotFoundException();</error>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ public final class ServiceViewManagerImpl implements ServiceViewManager, Persist
|
||||
}
|
||||
|
||||
ServiceViewItem eventRoot = ContainerUtil.find(myModel.getRoots(), root -> e.contributorClass.isInstance(root.getRootContributor()));
|
||||
ServiceViewContributor<?> notInitializedContributor = findNotIntializedContributor(e.contributorClass, eventRoot);
|
||||
ServiceViewContributor<?> notInitializedContributor = findNotInitializedContributor(e.contributorClass, eventRoot);
|
||||
boolean initialized = notInitializedContributor == null;
|
||||
if (!initialized &&
|
||||
(e.type == ServiceEventListener.EventType.RESET || e.type == ServiceEventListener.EventType.UNLOAD_SYNC_RESET)) {
|
||||
@@ -122,7 +122,7 @@ public final class ServiceViewManagerImpl implements ServiceViewManager, Persist
|
||||
}
|
||||
}
|
||||
|
||||
private @Nullable ServiceViewContributor<?> findNotIntializedContributor(Class<?> contributorClass, ServiceViewItem eventRoot) {
|
||||
private @Nullable ServiceViewContributor<?> findNotInitializedContributor(Class<?> contributorClass, ServiceViewItem eventRoot) {
|
||||
if (eventRoot != null) {
|
||||
return myNotInitializedContributors.contains(eventRoot.getRootContributor()) ? eventRoot.getRootContributor() : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user