diff -r 9b2a597cc862 -r 0efefbf5f8b6 java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java --- a/java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java Thu Mar 04 10:20:28 2010 +0100 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java Sun Jun 20 14:46:47 2010 +0200 @@ -10,20 +10,20 @@ */ public class Atom { - private HledacSluzby hledac = new HledacSluzby(); - private Collection podniky; + private HledacSluzby hledac = new HledacSluzby(); + private Collection podniky; - public Collection getPodniky() { - if (podniky == null) { - podniky = hledac.getPodnikEJB().getPodniky(); + public Collection getPodniky() { + if (podniky == null) { + podniky = hledac.getPodnikEJB().getPodniky(); + } + return podniky; } - return podniky; - } - public Date getDatumAktualizace() { - for (Podnik p : getPodniky()) { - return p.getDatum(); + public Date getDatumAktualizace() { + for (Podnik p : getPodniky()) { + return p.getDatum(); + } + return new Date(); } - return new Date(); - } }