Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4 from evolutionsoftswiss/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
evolutionsoftswiss authored Feb 2, 2021
2 parents 5900448 + 22a7845 commit c92cc5a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<artifactId>poker-calculator</artifactId>
<packaging>war</packaging>
<name>poker-calculator</name>
<version>1.1.0</version>
<version>1.2.0</version>

<build>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
import java.util.Map;
import java.util.Set;

import javax.annotation.PostConstruct;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.bean.ViewScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;
import javax.faces.event.ValueChangeEvent;
Expand All @@ -32,7 +33,7 @@
import com.liferay.portal.kernel.util.PortalUtil;

@ManagedBean(name = "calculator", eager = true)
@SessionScoped
@ViewScoped
public class Calculator implements Serializable {

private static final long serialVersionUID = 6369666854255203618L;
Expand Down Expand Up @@ -75,10 +76,7 @@ public class Calculator implements Serializable {
private int numberOfHoleCards = 4;
private String selectedGameType = Integer.toString(Enumerate.GAME_OMAHA);

public Calculator() {
this.init();
}

@PostConstruct
public void init() {

this.clearResult();
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/WEB-INF/liferay-plugin-package.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name=poker-calculator
module-group-id=poker-calculator
module-incremental-version=2
module-incremental-version=3
tags=Poker,texas hold'em,omaha hi,omaha hi/lo,calculator
short-description=Poker Calculator
long-description=Poker Calculator supports calculating poker odds for Omaha Hi, Omaha Hi/Lo and Texas Hold'em.
Expand All @@ -9,4 +9,4 @@ page-url=https://evolution-soft.ch
author=EvolutionSoft
licenses=GPL-3.0-or-later
speed-filters-enabled=false
Bundle-Version=1.1.0
Bundle-Version=1.2.0
1 change: 0 additions & 1 deletion src/main/webapp/WEB-INF/liferay-portlet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<liferay-portlet-app>
<portlet>
<portlet-name>poker-calculator</portlet-name>
<icon>/resources/images/icon.png</icon>
<requires-namespaced-parameters>false</requires-namespaced-parameters>
<ajaxable>true</ajaxable>
</portlet>
Expand Down

0 comments on commit c92cc5a

Please sign in to comment.