/magstudentportal/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/magstudentportal/trunk

« back to all changes in this revision

Viewing changes to src/main/java/common/Utils.java

  • Committer: Gustav Hartvigsson
  • Date: 2017-08-23 07:33:51 UTC
  • mto: (15.1.9 magstudentportal-more-db)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: gustav.hartvigsson@gmail.com-20170823073351-el0kay8wsdejx9tj
* Added JUnit and javax.faces dependancies to the pom.xml.
* Added a ConfigBean, so that some settings and such
  that are used in many places be easier to handle.
* Made the page_header.xhtml template strings from the ConfigBean.
* Started to add tests.

* TODO; Figure out why the balls <h:head> ans <h:body> is not renderd.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  static public String
16
16
  real_hash_func (String t, String s) {
17
17
    int a = t.getBytes()[0];
18
 
    @SuppressWarnings("unused")
 
18
    
19
19
    int b = t.getBytes()[a%t.length()];
20
20
    
21
 
    /* Rotate the string as here:
22
 
     *  
23
 
     */
 
21
    
24
22
    
25
23
    
26
24
    return null;