{"action":"opened","issue":{"url":"https://api.github.com/repos/bardsoftware/ganttproject/issues/1253","repository_url":"https://api.github.com/repos/bardsoftware/ganttproject","labels_url":"https://api.github.com/repos/bardsoftware/ganttproject/issues/1253/labels{/name}","comments_url":"https://api.github.com/repos/bardsoftware/ganttproject/issues/1253/comments","events_url":"https://api.github.com/repos/bardsoftware/ganttproject/issues/1253/events","html_url":"https://github.com/bardsoftware/ganttproject/issues/1253","id":153395864,"number":1253,"title":"DependencyGraph.Node promote and demote layer methods do the same thing","user":{"login":"pietrobraione","id":3235724,"avatar_url":"https://avatars.githubusercontent.com/u/3235724?v=3","gravatar_id":"","url":"https://api.github.com/users/pietrobraione","html_url":"https://github.com/pietrobraione","followers_url":"https://api.github.com/users/pietrobraione/followers","following_url":"https://api.github.com/users/pietrobraione/following{/other_user}","gists_url":"https://api.github.com/users/pietrobraione/gists{/gist_id}","starred_url":"https://api.github.com/users/pietrobraione/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pietrobraione/subscriptions","organizations_url":"https://api.github.com/users/pietrobraione/orgs","repos_url":"https://api.github.com/users/pietrobraione/repos","events_url":"https://api.github.com/users/pietrobraione/events{/privacy}","received_events_url":"https://api.github.com/users/pietrobraione/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-06T07:38:28Z","updated_at":"2016-05-06T07:38:28Z","closed_at":null,"body":"While reviewing the source code of the class net.sourceforge.ganttproject.task.algorithm.DependencyGraph.Node I noticed that the methods promoteLayer and demoteLayer are identical except for one assert. Apparently demoteLayer is the wrong one - it increases the level of the node instead of decreasing it."}}