SergOmarov

Untitled

Sep 24th, 2017
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Это
  2. val lore=Option(meta.getLore).getOrElse(new util.ArrayList[String]())
  3.  
  4. //Вместо
  5. val lore={
  6.    val l=meta.getLore
  7.    if(l==null)new util.ArrayList[String]()
  8.    else l
  9. }
RAW Paste Data