mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2014 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,13 +25,6 @@ public interface Accessor {
|
||||
|
||||
void write(Object o, Object value);
|
||||
|
||||
@Deprecated
|
||||
@NotNull
|
||||
/**
|
||||
* @deprecated to remove in IDEA 15
|
||||
*/
|
||||
Annotation[] getAnnotations();
|
||||
|
||||
<T extends Annotation> T getAnnotation(@NotNull Class<T> annotationClass);
|
||||
|
||||
String getName();
|
||||
|
||||
@@ -55,12 +55,6 @@ class FieldAccessor implements Accessor {
|
||||
}
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Annotation[] getAnnotations() {
|
||||
return myField.getAnnotations();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends Annotation> T getAnnotation(@NotNull Class<T> annotationClass) {
|
||||
return myField.getAnnotation(annotationClass);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,8 +16,6 @@
|
||||
|
||||
package com.intellij.util.xmlb;
|
||||
|
||||
import com.intellij.util.SmartList;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -26,7 +24,6 @@ import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.List;
|
||||
|
||||
class PropertyAccessor implements Accessor {
|
||||
private final String myName;
|
||||
@@ -80,15 +77,6 @@ class PropertyAccessor implements Accessor {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public Annotation[] getAnnotations() {
|
||||
List<Annotation> result = new SmartList<Annotation>();
|
||||
ContainerUtil.addAll(result, myReadMethod.getAnnotations());
|
||||
ContainerUtil.addAll(result, myWriteMethod.getAnnotations());
|
||||
return result.toArray(new Annotation[result.size()]);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends Annotation> T getAnnotation(@NotNull Class<T> annotationClass) {
|
||||
T annotation = myReadMethod.getAnnotation(annotationClass);
|
||||
|
||||
Reference in New Issue
Block a user