This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SuppressWarnings("unchecked") | |
public static <T extends JsonElement> T merge(final T obj1, final T obj2) | |
{ | |
if(obj1 == null) | |
return clone(obj2); | |
if(obj2 == null) | |
return clone(obj1); | |
if(obj1 instanceof JsonObject) | |
{ | |
final Map<String, JsonElement> merged = new HashMap<>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html><head> | |
<title>PositionTest</title> | |
<script type="text/javascript" src="js.js"></script> | |
<style> | |
table, tbody, tr, th, td { | |
border: 1px solid black; | |
border-collapse: collapse; | |
} |
NewerOlder