Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.HashMap; import java.util.Map; public class Main { @SuppressWarnings({ "unchecked", "rawtypes" }) public static Map<?, ?> mapWithElAsNull(Map<?, ?> dump) { if (dump == null) return null; HashMap result = new HashMap(dump); result.put("el", null); return result; } }