Package br.com.caelum.iogi.util

Source Code of br.com.caelum.iogi.util.Assert

package br.com.caelum.iogi.util;

import br.com.caelum.iogi.exceptions.InvalidTypeException;
import br.com.caelum.iogi.reflection.Target;

public class Assert {

  public static void isNotARawType(final Target<?> target) {
    if (!target.isParameterized())
      throw new InvalidTypeException("Expecting a parameterized list type, got raw type \"%s\" instead", target.getType());
  }

}
TOP

Related Classes of br.com.caelum.iogi.util.Assert

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.