java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java
changeset 145 0efefbf5f8b6
parent 49 9b2a597cc862
     1.1 --- a/java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java	Thu Mar 04 10:20:28 2010 +0100
     1.2 +++ b/java/nekurak.net-web/src/java/cz/frantovo/nekurak/web/Atom.java	Sun Jun 20 14:46:47 2010 +0200
     1.3 @@ -10,20 +10,20 @@
     1.4   */
     1.5  public class Atom {
     1.6  
     1.7 -    private HledacSluzby hledac = new HledacSluzby();
     1.8 -    private Collection<Podnik> podniky;
     1.9 +	private HledacSluzby hledac = new HledacSluzby();
    1.10 +	private Collection<Podnik> podniky;
    1.11  
    1.12 -    public Collection<Podnik> getPodniky() {
    1.13 -	if (podniky == null) {
    1.14 -	    podniky = hledac.getPodnikEJB().getPodniky();
    1.15 +	public Collection<Podnik> getPodniky() {
    1.16 +		if (podniky == null) {
    1.17 +			podniky = hledac.getPodnikEJB().getPodniky();
    1.18 +		}
    1.19 +		return podniky;
    1.20  	}
    1.21 -	return podniky;
    1.22 -    }
    1.23  
    1.24 -    public Date getDatumAktualizace() {
    1.25 -	for (Podnik p : getPodniky()) {
    1.26 -	    return p.getDatum();
    1.27 +	public Date getDatumAktualizace() {
    1.28 +		for (Podnik p : getPodniky()) {
    1.29 +			return p.getDatum();
    1.30 +		}
    1.31 +		return new Date();
    1.32  	}
    1.33 -	return new Date();
    1.34 -    }
    1.35  }