*/
package com.vaadin.v7.data.fieldgroup;
-import java.beans.IntrospectionException;
+import com.googlecode.openbeans.IntrospectionException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
package com.vaadin.v7.data.util;
-import java.beans.IntrospectionException;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.IntrospectionException;
+import com.googlecode.openbeans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collection;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
-import java.beans.Introspector;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.Introspector;
+import com.googlecode.openbeans.PropertyDescriptor;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
</pluginRepositories>
<repositories>
+ <repository>
+ <id>redhat-ga</id>
+ <url>https://maven.repository.redhat.com/ga/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
<repository>
<id>vaadin-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
+ <dependency>
+ <groupId>com.googlecode</groupId>
+ <artifactId>openbeans</artifactId>
+ <version>1.0</version>
+ </dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
- <version>4.2.0.Final</version>
+ <version>4.3.2.Final</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
- <version>1.9.5</version>
+ <version>2.18.3</version>
<exclusions>
<exclusion>
<artifactId>hamcrest-core</artifactId>
<scope>provided</scope>
</dependency>
+ <dependency>
+ <groupId>com.googlecode</groupId>
+ <artifactId>openbeans</artifactId>
+ </dependency>
+
<!-- Bean Validation API -->
<dependency>
<groupId>javax.validation</groupId>
*/
package com.vaadin.data;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.PropertyDescriptor;
import com.vaadin.shared.util.SharedUtil;
import com.vaadin.util.ReflectTools;
*/
package com.vaadin.data;
-import java.beans.IntrospectionException;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.IntrospectionException;
+import com.googlecode.openbeans.PropertyDescriptor;
import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
*/
package com.vaadin.data.util;
-import java.beans.BeanInfo;
-import java.beans.IntrospectionException;
-import java.beans.Introspector;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.BeanInfo;
+import com.googlecode.openbeans.IntrospectionException;
+import com.googlecode.openbeans.Introspector;
+import com.googlecode.openbeans.PropertyDescriptor;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
package com.vaadin.server;
-import java.beans.IntrospectionException;
-import java.beans.Introspector;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.IntrospectionException;
+import com.googlecode.openbeans.Introspector;
+import com.googlecode.openbeans.PropertyDescriptor;
import java.io.Serializable;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
}
/**
- * Checks if the given custom component or composite may accept a root component.
+ * Checks if the given custom component or composite may accept a root
+ * component.
* <p>
* For internal use only.
*
*
*/
public static boolean canSetRoot(Component customComponent) {
- if(customComponent instanceof CustomComponent) {
+ if (customComponent instanceof CustomComponent) {
return true;
}
- if(customComponent instanceof Composite) {
- return ((Composite)customComponent).getCompositionRoot() == null;
+ if (customComponent instanceof Composite) {
+ return ((Composite) customComponent).getCompositionRoot() == null;
}
return false;
}
.concat("' is not in any recognized format");
}
-}
\ No newline at end of file
+}
*/
package com.vaadin.ui.declarative;
-import java.beans.BeanInfo;
-import java.beans.IntrospectionException;
-import java.beans.Introspector;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.BeanInfo;
+import com.googlecode.openbeans.IntrospectionException;
+import com.googlecode.openbeans.Introspector;
+import com.googlecode.openbeans.PropertyDescriptor;
import java.io.Serializable;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
*/
package com.vaadin.util;
-import java.beans.IntrospectionException;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.IntrospectionException;
+import com.googlecode.openbeans.PropertyDescriptor;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
package com.vaadin.tests.design;
-import java.beans.BeanInfo;
-import java.beans.Introspector;
-import java.beans.PropertyDescriptor;
+import com.googlecode.openbeans.BeanInfo;
+import com.googlecode.openbeans.Introspector;
+import com.googlecode.openbeans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
package com.vaadin.tests.performance;
+import java.lang.instrument.Instrumentation;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.util.Collections;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;
-import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator;
+//import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator;
/**
* @author Vaadin Ltd
HasComponents container = component.getParent();
setParent(component, null);
- memoryLabel.setValue(
- String.valueOf(ObjectSizeCalculator.getObjectSize(component)));
+// todo enable back
+// memoryLabel.setValue(
+// String.valueOf(Instrumentation.getObjectSize(component)));
setParent(component, container);
}